fix gravatar disable bug (#22337)

tokarchuk/v1.18
Lunny Xiao 2 years ago committed by GitHub
parent 55c6433fac
commit 0cca1e079b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/system/setting.go

@ -276,7 +276,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