Fix getting avatar based on email
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-03-01 21:14:10 +01:00
parent 7e7aaccbb8
commit 7919178774
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func GetAvatar(c echo.Context) error {
username := c.Param("username")
// Get the user
user, err := user2.GetUserByUsername(username)
user, err := user2.GetUserWithEmail(&user2.User{Username: username})
if err != nil {
log.Errorf("Error getting user for avatar: %v", err)
return handler.HandleHTTPError(err, c)