Mirror updates

This commit is contained in:
Unknown 2014-03-23 12:16:17 -04:00
parent b31070faf5
commit f8cfb81fb0
10 changed files with 46 additions and 47 deletions

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.