diff options
Diffstat (limited to 'models/user/avatar.go')
-rw-r--r-- | models/user/avatar.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/user/avatar.go b/models/user/avatar.go index 102206f3a2..08b3b0e331 100644 --- a/models/user/avatar.go +++ b/models/user/avatar.go @@ -68,9 +68,7 @@ func (u *User) AvatarLinkWithSize(size int) string { useLocalAvatar := false autoGenerateAvatar := false - disableGravatarSetting, _ := system_model.GetSetting(system_model.KeyPictureDisableGravatar) - - disableGravatar := disableGravatarSetting.GetValueBool() + disableGravatar := system_model.GetSettingBool(system_model.KeyPictureDisableGravatar) switch { case u.UseCustomAvatar: |