diff options
author | Unknwon <u@gogs.io> | 2015-03-12 20:32:38 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-12 20:32:38 -0400 |
commit | b72e75e522dda88dcbf7b064b8af3c495deb0595 (patch) | |
tree | 9f7bcdc89d96b1950e202229ccf97ce6e82a44aa /models/user.go | |
parent | b668fc7aadb928b86336655e2fa0b37ed4d9733d (diff) | |
download | gitea-b72e75e522dda88dcbf7b064b8af3c495deb0595.tar.gz gitea-b72e75e522dda88dcbf7b064b8af3c495deb0595.zip |
#1024: OFFLINE_MODE Still Uses Gravatar
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index ea5041bdff..f3a6c38f62 100644 --- a/models/user.go +++ b/models/user.go @@ -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 |