Set avatar provider to upload when uploading an avatar

This commit is contained in:
kolaente 2020-08-02 13:36:05 +02:00
parent 69d935f7f0
commit 27ca9a9169
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ func UploadAvatar(c echo.Context) (err error) {
}
u.AvatarFileID = f.ID
u.AvatarProvider = "upload"
if _, err := user.UpdateUser(u); err != nil {
return handler.HandleHTTPError(err, c)