fix gravatar disable bug (#22336)

This commit is contained in:
Lunny Xiao
2023-01-04 16:19:56 +08:00
repo.diff.committed_by GitHub
repo.diff.parent 32e863439c
repo.diff.commit fdbb0b4762

repo.diff.view_file

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