1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
forgejo/routers/web/user
Gusted 33b1dec846
[GITEA] Fix NPE in UsernameSubRoute
- 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)
(cherry picked from commit d31ce2f03d)
(cherry picked from commit cfebef4f82)
2024-02-05 16:09:41 +01:00
..
setting [SECURITY] Rework long-term authentication 2024-02-05 15:06:15 +01:00
avatar.go Replace -1 with GhostUserID (#27703) 2023-10-20 14:43:08 +00:00
code.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
home.go [GITEA] Fix NPE in UsernameSubRoute 2024-02-05 16:09:41 +01:00
home_test.go Include public repos in doer's dashboard for issue search (#28304) 2023-12-07 13:26:18 +08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
package.go Fix some RPM registry flaws (#28782) 2024-01-19 11:37:10 +00:00
profile.go Introduce htmx and use it to avoid full page load on Subscribe and Follow (#28908) 2024-01-30 15:45:54 +01:00
search.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
stop_watch.go Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
task.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00