mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 00:02:43 +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
@@ -21,6 +21,7 @@ func TestUser_ToUser(t *testing.T) {
|
||||
|
||||
apiUser := toUser(user1, true, true)
|
||||
assert.True(t, apiUser.IsAdmin)
|
||||
assert.Contains(t, apiUser.AvatarURL, "://")
|
||||
|
||||
user2 := db.AssertExistsAndLoadBean(t, &models.User{ID: 2, IsAdmin: false}).(*models.User)
|
||||
|
||||
|
||||
Reference in new issue
Block a user