mirror of
1
Fork 0
forgejo/routers/web/user
Gusted 3c7a955f05
[GITEA] Fix NPE in `UsernameSubRoute`
- Backport of 
- When the user is not found in `reloadparam`, early return when the
user is not found to avoid calling `IsUserVisibleToViewer` which in turn
avoids causing a NPE.
- This fixes the case that a 500 error and 404 error is shown on the
same page.
- Add integration test for non-existant user RSS.
- Regression by c6366089df

(cherry picked from commit f0e0696278)
(cherry picked from commit 75d8066908)
(cherry picked from commit 4d0a1e0637)
(cherry picked from commit 5f40a485da)
(cherry picked from commit c4cb7812e3)
2024-01-18 15:31:04 +01:00
..
setting Forbid removing the last admin user () () 2024-01-16 14:41:11 +00:00
avatar.go Set `X-Gitea-Debug` header once () 2023-03-08 15:40:04 -05:00
code.go Show the repo count in code tab on both user profile and org page. () 2023-09-13 18:47:35 +08:00
home.go [GITEA] Fix NPE in `UsernameSubRoute` 2024-01-18 15:31:04 +01:00
home_test.go Delete repos of org when purge delete user () () 2023-11-01 10:03:12 +08:00
main_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
notification.go Use more `IssueList` instead of `[]*Issue` () 2023-08-07 19:26:40 +00:00
package.go Delete repos of org when purge delete user () () 2023-11-01 10:03:12 +08:00
profile.go Rework markup link rendering () () 2024-01-16 14:41:11 +00:00
search.go Reduce usage of `db.DefaultContext` () 2023-09-14 17:09:32 +00:00
stop_watch.go Next round of `db.DefaultContext` refactor () 2023-09-16 14:39:12 +00:00
task.go Next round of `db.DefaultContext` refactor () 2023-09-16 14:39:12 +00:00