mirror of
https://github.com/gogs/gogs.git
synced 2026-03-06 12:11:00 +01:00
pkg/tool: use identicon image as the default gravatar (#4934)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user