Browse Source

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

Arnie97 6 years ago
parent
commit
2a8a293c7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/tool/tool.go

+ 1 - 1
pkg/tool/tool.go

@@ -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"