Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Sep 11, 2023
1 parent 19d2a48 commit 5a1398a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/system/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ var (
)

func Init(ctx context.Context) error {
disableGravatar, err := GetSettingBool(ctx, KeyPictureDisableGravatar, false)
disableGravatar, err := GetSettingBool(ctx, KeyPictureDisableGravatar, setting_module.GetDefaultDisableGravatar())
if err != nil {
return err
}
Expand All @@ -292,6 +292,7 @@ func Init(ctx context.Context) error {
return fmt.Errorf("failed to set setting %q: %w", KeyPictureEnableFederatedAvatar, err)
}
}
enableFederatedAvatar = false
}

if enableFederatedAvatar || !disableGravatar {
Expand Down

0 comments on commit 5a1398a

Please sign in to comment.