gitforge/routers/web/user
0ko 61091e0027 fix(ui): fall back to default theme from non-existent (#13110)
When a user has a theme in the DB that is not among the themes in the configuration, the following happens to this user's UI:

Image: https://codeberg.org/attachments/bf8d4ff1-8216-4df5-ab90-8dc7e03784d9

The workaround is to manually go to Appearance settings and update the theme.

This can happen if the theme was removed from the server config. For example, admins don't want to have it anymore. Maybe it even was the default theme, which is being saved in the DB during sign up.

It will be useful for Forgejo if we, for example, want to separate colorblind them variants from the actual themes, or if we ever want to remove the Gitea themes. Rel: https://codeberg.org/forgejo/forgejo/pulls/13054.

And instance admins will also find it useful to not have to manually update the DB in case they want to get rid of some custom theme.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/13110
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
2026-06-17 19:18:09 +02:00
..
setting fix(ui): fall back to default theme from non-existent (#13110) 2026-06-17 19:18:09 +02:00
avatar.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
code.go chore: minor code cleanup in search (#10549) 2025-12-23 00:38:51 +01:00
home.go fix(issue-search): drop all labels ids if no label (0) is present (#12665) 2026-05-21 22:21:05 +02:00
home_test.go fix: Allow SHA-256 in PR commit URLs (#10309) 2025-12-16 00:45:00 +01:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go fix: introduce lint-single-response to prevent control flow continuing past a ctx.Error(...)-style method (#13087) 2026-06-14 17:06:03 +02:00
package.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
profile.go Federated user activity following (#4767) 2026-05-08 08:08:10 +02:00
search.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
stop_watch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
task.go feat: show progress of issues and PRs migrations (#12738) 2026-05-28 00:49:07 +02:00