mirror of
https://codeberg.org/teddit/teddit
synced 2025-02-16 12:10:36 +01:00
Convert 'on' value in prefer_frontpage setting to 'true'
This commit is contained in:
parent
d368acac29
commit
546fdb5d77
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user