mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-05 01:44:36 -04:00
Mirror updates
This commit is contained in:
parent
b31070faf5
commit
f8cfb81fb0
10 changed files with 46 additions and 47 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue