fix gravatar disable bug (#22337)

mj-v1.18.3
Lunny Xiao 1 year ago committed by GitHub
parent 55c6433fac
commit 0cca1e079b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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