mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 13:00:10 +02:00
#1024: OFFLINE_MODE Still Uses Gravatar
This commit is contained in:
1 parent
b668fc7aad
commit
b72e75e522
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -124,7 +124,7 @@ func (u *User) AvatarLink() string {
|
||||
switch {
|
||||
case u.UseCustomAvatar:
|
||||
return setting.AppSubUrl + "/avatars/" + com.ToStr(u.Id)
|
||||
case setting.DisableGravatar:
|
||||
case setting.DisableGravatar, setting.OfflineMode:
|
||||
return setting.AppSubUrl + "/img/avatar_default.jpg"
|
||||
case setting.Service.EnableCacheAvatar:
|
||||
return setting.AppSubUrl + "/avatar/" + u.Avatar
|
||||
|
||||
Reference in new issue
Block a user