In many cases user avatar link should be an absolute URL with http host (#17420)
This commit is contained in:
parent
3676fafdac
commit
7c951fdd4a
3 changed files with 9 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue