Convert 'on' value in prefer_frontpage setting to 'true'

This commit is contained in:
redmt 2022-06-10 22:22:37 +02:00
parent d368acac29
commit 546fdb5d77
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ preferenceRoutes.post('/saveprefs', (req, res, next) => {
httpOnly: true,
});
if (prefer_frontpage === 'on') prefer_frontpage = 'true';
res.cookie('prefer_frontpage', prefer_frontpage, {
maxAge: 365 * 24 * 60 * 60 * 1000,
httpOnly: true,