Skip to content

Commit 0cca1e0

Browse files
authored
fix gravatar disable bug (#22337)
1 parent 55c6433 commit 0cca1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: models/system/setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func Init() error {
276276
}
277277
}
278278

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

0 commit comments

Comments
 (0)