1
0

Fix getting user info from /user endpoint for link shares

This commit is contained in:
kolaente
2021-04-07 15:02:57 +02:00
parent cb0df3ebbc
commit 8ddc00bd29
7 changed files with 12 additions and 16 deletions

View File

@ -22,8 +22,8 @@ import (
"xorm.io/xorm"
)
// Returns either a user or a link share disguised as a user.
func getUserOrLinkShareUser(s *xorm.Session, a web.Auth) (uu *user.User, err error) {
// GetUserOrLinkShareUser returns either a user or a link share disguised as a user.
func GetUserOrLinkShareUser(s *xorm.Session, a web.Auth) (uu *user.User, err error) {
if u, is := a.(*user.User); is {
uu, err = user.GetUserByID(s, u.ID)
return