1
0
Fork 0
forked from forgejo/forgejo

Use identicon image for default gravatar. (#2767)

* Use identicon image for default gravatar.

* Fixed tests.
This commit is contained in:
harry 2017-10-23 03:50:07 -05:00 committed by Bo-Yi Wu
parent e4990ba205
commit 81d1e54a49
3 changed files with 4 additions and 4 deletions

View file

@ -211,7 +211,7 @@ func AvatarLink(email string) string {
}
if !setting.DisableGravatar {
return setting.GravatarSource + HashEmail(email)
return setting.GravatarSource + HashEmail(email) + "?d=identicon"
}
return DefaultAvatarLink()