summaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
diff options
context:
space:
mode:
authorharry <harryzhxu@gmail.com>2017-10-23 03:50:07 -0500
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-10-23 03:50:07 -0500
commit81d1e54a49cc61e64608ff2aee055110c7e4f811 (patch)
tree70b5efe8835127be80c3cbe30f42bccad0a7bdd8 /modules/base/tool.go
parente4990ba205d56f7b6fda990d6c2d19a60b35fc56 (diff)
downloadgitea-81d1e54a49cc61e64608ff2aee055110c7e4f811.tar.gz
gitea-81d1e54a49cc61e64608ff2aee055110c7e4f811.zip
Use identicon image for default gravatar. (#2767)
* Use identicon image for default gravatar. * Fixed tests.
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r--modules/base/tool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index 26ced075da..194db772cf 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -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()