Browse Source

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

pull/4940/merge
Arnie97 7 years ago committed by jc
parent
commit
2a8a293c7c
  1. 2
      pkg/tool/tool.go

2
pkg/tool/tool.go

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

Loading…
Cancel
Save