diff options
author | Sandro Santilli <strk@kbt.io> | 2019-09-26 18:21:23 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-09-26 12:21:23 -0400 |
commit | d958b9db4fa0f1910b3ca82338e3d68a70efedd9 (patch) | |
tree | 9f2de2fd82eed04ac8ed5cc26771824ba4648506 /models/action_test.go | |
parent | b2b927808b201eef44ef26be7d8529c315fcd170 (diff) | |
download | gitea-d958b9db4fa0f1910b3ca82338e3d68a70efedd9.tar.gz gitea-d958b9db4fa0f1910b3ca82338e3d68a70efedd9.zip |
Alwaywas return local url for users avatar (#8245)
* Always return local url for users avatar
Avoids having to wait for DNS lookups when libravatar is activated
fixing #6046
* Avoid double slash in avatar link
* Move avatar route to the correct place
Diffstat (limited to 'models/action_test.go')
-rw-r--r-- | models/action_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action_test.go b/models/action_test.go index 16fdc7adcc..c90538ebe6 100644 --- a/models/action_test.go +++ b/models/action_test.go @@ -173,7 +173,7 @@ func TestPushCommits_AvatarLink(t *testing.T) { pushCommits.Len = len(pushCommits.Commits) assert.Equal(t, - "https://secure.gravatar.com/avatar/ab53a2911ddf9b4817ac01ddcd3d975f?d=identicon", + "/suburl/user/avatar/user2/-1", pushCommits.AvatarLink("user2@example.com")) assert.Equal(t, |