diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-23 12:16:17 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-23 12:16:17 -0400 |
commit | f8cfb81fb027313e45b8ce505200f3d48b306fe2 (patch) | |
tree | 130d0f5a0adf638eedb4f9555954254d2747f48c /models | |
parent | b31070faf5ab73955585e4962d809be11098d767 (diff) | |
download | gitea-f8cfb81fb027313e45b8ce505200f3d48b306fe2.tar.gz gitea-f8cfb81fb027313e45b8ce505200f3d48b306fe2.zip |
Mirror updates
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 88bbabe6d5..7fd7449ce5 100644 --- a/models/user.go +++ b/models/user.go @@ -72,7 +72,10 @@ func (user *User) HomeLink() string { // AvatarLink returns the user gravatar link. func (user *User) AvatarLink() string { - return "/avatar/" + user.Avatar + if base.Service.EnableCacheAvatar { + return "/avatar/" + user.Avatar + } + return "http://1.gravatar.com/avatar/" + user.Avatar } // NewGitSig generates and returns the signature of given user. |