This commit is contained in:
2026-07-17 22:59:53 +02:00
parent d09cb44fa7
commit 18a871976c
4 changed files with 14 additions and 5 deletions

View File

@@ -1358,11 +1358,11 @@ process.on('uncaughtException', err => {
globals.lang = perRequestLang;
// Resolve per-request infobox preference
// Guests always get false — the alternative infobox is a logged-in user preference only
// Guests check the new config flag, whereas users use their session pref or default to the user flag
const useAltInfobox = (req && req.session && typeof req.session.use_alternative_infobox === 'boolean')
? req.session.use_alternative_infobox
: (req && !req.session
? false
? (cfg.websrv.guest_alternative_infobox === true)
: (data && typeof data.user_alternative_infobox === 'boolean'
? data.user_alternative_infobox
: (cfg.websrv.user_alternative_infobox !== false)));