mirror of
https://github.com/gogs/gogs.git
synced 2025-05-28 18:22:45 +00:00
pkg/tool: use identicon image as the default gravatar (#4934)
This commit is contained in:
parent
f3e8352193
commit
2a8a293c7c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user