diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-01-01 20:20:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 20:20:04 +0800 |
commit | f1e07d8c879aed32d079694d3623f9c6450ee8cd (patch) | |
tree | 941504490b61fd18b36775ebbd744184f890592a /models | |
parent | 443fd27a901aceeda203b602d798792fa0927bb7 (diff) | |
download | gitea-f1e07d8c879aed32d079694d3623f9c6450ee8cd.tar.gz gitea-f1e07d8c879aed32d079694d3623f9c6450ee8cd.zip |
Fix bug of DisableGravatar default value (#22297)
backport #22296
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'models')
-rw-r--r-- | models/system/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/system/setting.go b/models/system/setting.go index b4011b1b3e..d61b7fdb0f 100644 --- a/models/system/setting.go +++ b/models/system/setting.go @@ -267,7 +267,7 @@ func Init() error { enableFederatedAvatar = false } - if disableGravatar || !enableFederatedAvatar { + if enableFederatedAvatar || !disableGravatar { var err error GravatarSourceURL, err = url.Parse(setting.GravatarSource) if err != nil { |