pkg/tool: use identicon image as the default gravatar (#4934)

pull/4940/merge
Arnie97 2018-03-07 05:43:00 +08:00 committed by jc
parent f3e8352193
commit 2a8a293c7c
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ func AvatarLink(email string) (url string) {
}
}
if len(url) == 0 && !setting.DisableGravatar {
url = setting.GravatarSource + HashEmail(email)
url = setting.GravatarSource + HashEmail(email) + "?d=identicon"
}
if len(url) == 0 {
url = setting.AppSubURL + "/img/avatar_default.png"