mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 03:28:52 +02:00
fix gravatar disable bug (#22337)
This commit is contained in:
1 parent
55c6433fac
commit
0cca1e079b
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user