fix gravatar disable bug (#22336)

pull/22342/head
Lunny Xiao 2 years ago committed by GitHub
parent 32e863439c
commit fdbb0b4762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/system/setting.go

@ -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