diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-26 09:56:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 20:56:16 -0500 |
commit | 371ebce2524f013986401af84732fb27bdbc4f96 (patch) | |
tree | 028d1ee76c82e8254d625cd9ba2784b372745a6a /routers/api/v1/user/settings.go | |
parent | f23851f6906acafd5509fb0dcef9866a9aee88ce (diff) | |
download | gitea-371ebce2524f013986401af84732fb27bdbc4f96.tar.gz gitea-371ebce2524f013986401af84732fb27bdbc4f96.zip |
Fix database inconsistent when admin change user email (#17549)
Diffstat (limited to 'routers/api/v1/user/settings.go')
-rw-r--r-- | routers/api/v1/user/settings.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/settings.go b/routers/api/v1/user/settings.go index 40bee56681..5f4d76ed72 100644 --- a/routers/api/v1/user/settings.go +++ b/routers/api/v1/user/settings.go @@ -74,7 +74,7 @@ func UpdateUserSettings(ctx *context.APIContext) { ctx.User.KeepActivityPrivate = *form.HideActivity } - if err := user_model.UpdateUser(ctx.User); err != nil { + if err := user_model.UpdateUser(ctx.User, false); err != nil { ctx.InternalServerError(err) return } |