mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
In many cases user avatar link should be an absolute URL with http host (#17420)
This commit is contained in:
@ -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