diff options
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/tool.go | 2 | ||||
-rw-r--r-- | modules/base/tool_test.go | 2 |
2 files changed, 2 insertions, 2 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() diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go index f3e787dd13..44ea309f7c 100644 --- a/modules/base/tool_test.go +++ b/modules/base/tool_test.go @@ -135,7 +135,7 @@ func TestAvatarLink(t *testing.T) { setting.DisableGravatar = false assert.Equal(t, - "353cbad9b58e69c96154ad99f92bedc7", + "353cbad9b58e69c96154ad99f92bedc7?d=identicon", AvatarLink("gitea@example.com"), ) } |