Skip to content

Commit 5a1398a

Browse files
committed
Fix test
1 parent 19d2a48 commit 5a1398a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/system/setting.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ var (
269269
)
270270

271271
func Init(ctx context.Context) error {
272-
disableGravatar, err := GetSettingBool(ctx, KeyPictureDisableGravatar, false)
272+
disableGravatar, err := GetSettingBool(ctx, KeyPictureDisableGravatar, setting_module.GetDefaultDisableGravatar())
273273
if err != nil {
274274
return err
275275
}
@@ -292,6 +292,7 @@ func Init(ctx context.Context) error {
292292
return fmt.Errorf("failed to set setting %q: %w", KeyPictureEnableFederatedAvatar, err)
293293
}
294294
}
295+
enableFederatedAvatar = false
295296
}
296297

297298
if enableFederatedAvatar || !disableGravatar {

0 commit comments

Comments
 (0)