mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-27 05:37:15 -05:00
PLT-6830 Fixed updating profile image not invalidating cache (#6814)
This commit is contained in:
committed by
Joram Wilander
parent
093dfd6c7f
commit
2f83ea61c7
+3
-1
@@ -823,7 +823,9 @@ func SetProfileImage(userId string, imageData *multipart.FileHeader) *model.AppE
|
||||
return model.NewLocAppError("SetProfileImage", "api.user.upload_profile_user.upload_profile.app_error", nil, "")
|
||||
}
|
||||
|
||||
Srv.Store.User().UpdateLastPictureUpdate(userId)
|
||||
<-Srv.Store.User().UpdateLastPictureUpdate(userId)
|
||||
|
||||
InvalidateCacheForUser(userId)
|
||||
|
||||
if user, err := GetUser(userId); err != nil {
|
||||
l4g.Error(utils.T("api.user.get_me.getting.error"), userId)
|
||||
|
||||
Reference in New Issue
Block a user