misc bugfixes
This commit is contained in:
@ -61,7 +61,7 @@ import flummpress from "flummpress";
|
||||
req.session = false;
|
||||
if(req.url.pathname.match(/^\/(s|b|t|ca)\//))
|
||||
return;
|
||||
req.theme = req.cookies.theme ?? 'f0ck';
|
||||
req.theme = req.cookies.theme || 'f0ck';
|
||||
|
||||
if(req.cookies.session) {
|
||||
const user = await db`
|
||||
@ -95,6 +95,8 @@ import flummpress from "flummpress";
|
||||
where id = ${+user[0].sess_id}
|
||||
`;
|
||||
|
||||
req.session.theme = req.cookies.theme;
|
||||
|
||||
// update userprofile
|
||||
await db`
|
||||
insert into "user_options" ${
|
||||
|
Reference in New Issue
Block a user