Skip to content

Commit

Permalink
fix gravatar disable bug (#22336)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Jan 4, 2023
1 parent 32e8634 commit fdbb0b4
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 @@ -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)
Expand Down

0 comments on commit fdbb0b4

Please sign in to comment.