diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-01-01 20:19:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 20:19:23 +0800 |
commit | 9c8fc7f6773c71019365a0bb66f6686ba7420fb8 (patch) | |
tree | c47d3f26b934ad515b5ecb6c0a0f1b7e058110fe /modules/setting/picture.go | |
parent | 2bbf9e730277e62caa54ac175d93e1570b721db4 (diff) | |
download | gitea-9c8fc7f6773c71019365a0bb66f6686ba7420fb8.tar.gz gitea-9c8fc7f6773c71019365a0bb66f6686ba7420fb8.zip |
Fix bug of DisableGravatar default value (#22296)
#18058 made a mistake. The disableGravatar's default value depends on
`OfflineMode`. If it's `true`, then `disableGravatar` is true, otherwise
it's `false`. But not opposite.
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'modules/setting/picture.go')
-rw-r--r-- | modules/setting/picture.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/picture.go b/modules/setting/picture.go index 9d16a2360b..a814af822f 100644 --- a/modules/setting/picture.go +++ b/modules/setting/picture.go @@ -68,7 +68,7 @@ func newPictureService() { } func GetDefaultDisableGravatar() bool { - return !OfflineMode + return OfflineMode } func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool { |