Skip to content

Commit

Permalink
Fix bug of DisableGravatar default value (#22297)
Browse files Browse the repository at this point in the history
backport #22296

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
  • Loading branch information
lunny and KN4CK3R authored Jan 1, 2023
1 parent 443fd27 commit f1e07d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/system/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion modules/setting/picture.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func newPictureService() {
}

func GetDefaultDisableGravatar() bool {
return !OfflineMode
return OfflineMode
}

func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {
Expand Down

0 comments on commit f1e07d8

Please sign in to comment.