diff options
author | 6543 <6543@obermui.de> | 2019-12-29 15:24:50 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-12-29 16:24:50 +0200 |
commit | d59536c222857713d95846d77903282afe608f23 (patch) | |
tree | f75b7f5df55bb18a9b7d3f88f8effedd3b893e18 /integrations | |
parent | ae9d342f5413031ed01eb74e7c7640ffa2cff13e (diff) | |
download | gitea-d59536c222857713d95846d77903282afe608f23.tar.gz gitea-d59536c222857713d95846d77903282afe608f23.zip |
[BugFix] use default avatar for ghost user (fix 500 error) (#9536)
* remove since it is there for 3years
* fix 500 error for ghost avatar
* dont insert "-1" in any case to issue.poster_id
* fix lint
* Test: ghost avatar link
* fix test
* Revert "remove since it is there for 3years"
This reverts commit fd9ad05159c84ba804b126d2a959963d82578b22.
* Revert "dont insert "-1" in any case to issue.poster_id"
This reverts commit 05469ab6d815a6cc6478a256018b9ed1a12749e0.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/links_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/links_test.go b/integrations/links_test.go index 329e54528a..e69d9306ed 100644 --- a/integrations/links_test.go +++ b/integrations/links_test.go @@ -51,6 +51,7 @@ func TestRedirectsNoLogin(t *testing.T) { "/user2/repo1/src/master": "/user2/repo1/src/branch/master", "/user2/repo1/src/master/file.txt": "/user2/repo1/src/branch/master/file.txt", "/user2/repo1/src/master/directory/file.txt": "/user2/repo1/src/branch/master/directory/file.txt", + "/user/avatar/Ghost/-1": "/img/avatar_default.png", } for link, redirectLink := range redirects { req := NewRequest(t, "GET", link) |