Add disable gravatar option
This commit is contained in:
parent
3bd5fc6d6f
commit
e7d8fadb08
5 changed files with 11 additions and 2 deletions
|
@ -74,7 +74,9 @@ func (user *User) HomeLink() string {
|
|||
|
||||
// AvatarLink returns the user gravatar link.
|
||||
func (user *User) AvatarLink() string {
|
||||
if base.Service.EnableCacheAvatar {
|
||||
if base.DisableGravatar {
|
||||
return "/img/avatar_default.jpg"
|
||||
} else if base.Service.EnableCacheAvatar {
|
||||
return "/avatar/" + user.Avatar
|
||||
}
|
||||
return "//1.gravatar.com/avatar/" + user.Avatar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue