summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-01-01 20:20:04 +0800
committerGitHub <noreply@github.com>2023-01-01 20:20:04 +0800
commitf1e07d8c879aed32d079694d3623f9c6450ee8cd (patch)
tree941504490b61fd18b36775ebbd744184f890592a /models
parent443fd27a901aceeda203b602d798792fa0927bb7 (diff)
downloadgitea-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.go2
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 {