Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2023-01-04 18:57:57 +08:00
committed by GitHub
5 changed files with 56 additions and 163 deletions

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)