Browse Source

fix gravatar disable bug (#22336)

tags/v1.19.0-rc0
Lunny Xiao 1 year ago
parent
commit
fdbb0b4762
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      models/system/setting.go

+ 1
- 1
models/system/setting.go View File

@@ -275,7 +275,7 @@ func Init() error {
}
}

if enableFederatedAvatarSetting.GetValueBool() {
if GravatarSourceURL != nil && enableFederatedAvatarSetting.GetValueBool() {
LibravatarService = libravatar.New()
if GravatarSourceURL.Scheme == "https" {
LibravatarService.SetUseHTTPS(true)

Loading…
Cancel
Save