mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 12:07:10 +02:00
In many cases user avatar link should be an absolute URL with http host (#17420)
This commit is contained in:
1 parent
3676fafdac
commit
7c951fdd4a
3 files changed
+9
-3
No files matched your search
@@ -73,7 +73,7 @@ func TestUserAvatar(t *testing.T) {
|
||||
|
||||
user2 = db.AssertExistsAndLoadBean(t, &models.User{ID: 2}).(*models.User) // owner of the repo3, is an org
|
||||
|
||||
req = NewRequest(t, "GET", user2.AvatarLink())
|
||||
req = NewRequest(t, "GET", user2.AvatarLinkWithSize(0))
|
||||
_ = session.MakeRequest(t, req, http.StatusOK)
|
||||
|
||||
// Can't test if the response matches because the image is re-generated on upload but checking that this at least doesn't give a 404 should be enough.
|
||||
|
||||
Reference in new issue
Block a user