Mirror updates

This commit is contained in:
Unknown committed 2014-03-23 12:16:17 -04:00
1 parent b31070faf5
commit f8cfb81fb0
10 files changed
+46 -47

No files matched your search

+4 -1
View File
@@ -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.