Skip to content

Commit

Permalink
fix gravatar disable bug (#22337)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Jan 4, 2023
1 parent 55c6433 commit 0cca1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/system/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0cca1e0

Please sign in to comment.