expand user avatar url as well. #1263
This commit is contained in:
parent
b5a90e0a88
commit
937e61b8a1
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ func (g *Gogs) Login(res http.ResponseWriter, req *http.Request) (*model.User, b
|
|||
user.Token = accessToken
|
||||
user.Login = userInfo.UserName
|
||||
user.Email = userInfo.Email
|
||||
user.Avatar = userInfo.AvatarUrl
|
||||
user.Avatar = expandAvatar(g.URL, userInfo.AvatarUrl)
|
||||
return &user, g.Open, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue