mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
Convert 'on' value in prefer_frontpage setting to 'true'
This commit is contained in:
@@ -167,6 +167,7 @@ preferenceRoutes.post('/saveprefs', (req, res, next) => {
|
|||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (prefer_frontpage === 'on') prefer_frontpage = 'true';
|
||||||
res.cookie('prefer_frontpage', prefer_frontpage, {
|
res.cookie('prefer_frontpage', prefer_frontpage, {
|
||||||
maxAge: 365 * 24 * 60 * 60 * 1000,
|
maxAge: 365 * 24 * 60 * 60 * 1000,
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user