Skip to content

Commit fdbb0b4

Browse files
authored
fix gravatar disable bug (#22336)
1 parent 32e8634 commit fdbb0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/system/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func Init() error {
275275
}
276276
}
277277

278-
if enableFederatedAvatarSetting.GetValueBool() {
278+
if GravatarSourceURL != nil && enableFederatedAvatarSetting.GetValueBool() {
279279
LibravatarService = libravatar.New()
280280
if GravatarSourceURL.Scheme == "https" {
281281
LibravatarService.SetUseHTTPS(true)

0 commit comments

Comments
 (0)