aboutsummaryrefslogtreecommitdiffstats
path: root/modules/repository/commits_test.go
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-22 03:18:43 +0200
committerGitHub <noreply@github.com>2021-05-21 21:18:43 -0400
commitbe745be0a4f3feab01f896f1c0f17164bb30234b (patch)
tree9f5c9d00fe326258654b5345a4e1ac42924adece /modules/repository/commits_test.go
parent44d76ff7cb41a3998dec9a0675ca16ff31ecff5e (diff)
downloadgitea-be745be0a4f3feab01f896f1c0f17164bb30234b.tar.gz
gitea-be745be0a4f3feab01f896f1c0f17164bb30234b.zip
Double the avatar size factor (#15941)
* Double the avatar size factor This results on finer Avatar rendering on Hi-DPI display. * fix test Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/repository/commits_test.go')
-rw-r--r--modules/repository/commits_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/repository/commits_test.go b/modules/repository/commits_test.go
index 16677fe8a6..ba69a7f97c 100644
--- a/modules/repository/commits_test.go
+++ b/modules/repository/commits_test.go
@@ -112,13 +112,13 @@ func TestPushCommits_AvatarLink(t *testing.T) {
pushCommits.Len = len(pushCommits.Commits)
assert.Equal(t,
- "https://secure.gravatar.com/avatar/ab53a2911ddf9b4817ac01ddcd3d975f?d=identicon&s=56",
+ "https://secure.gravatar.com/avatar/ab53a2911ddf9b4817ac01ddcd3d975f?d=identicon&s=112",
pushCommits.AvatarLink("user2@example.com"))
assert.Equal(t,
"https://secure.gravatar.com/avatar/"+
fmt.Sprintf("%x", md5.Sum([]byte("nonexistent@example.com")))+
- "?d=identicon&s=56",
+ "?d=identicon&s=112",
pushCommits.AvatarLink("nonexistent@example.com"))
}