Fix bug of DisableGravatar default value (#22297)

backport #22296

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
pull/22298/head^2
Lunny Xiao 2 years ago committed by GitHub
parent 443fd27a90
commit f1e07d8c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/system/setting.go
  2. 2
      modules/setting/picture.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 {

@ -69,7 +69,7 @@ func newPictureService() {
}
func GetDefaultDisableGravatar() bool {
return !OfflineMode
return OfflineMode
}
func GetDefaultEnableFederatedAvatar(disableGravatar bool) bool {

Loading…
Cancel
Save