diff --git a/src/inc/routes/random.mjs b/src/inc/routes/random.mjs index c4917ae..6af00c1 100644 --- a/src/inc/routes/random.mjs +++ b/src/inc/routes/random.mjs @@ -19,7 +19,8 @@ export default (router, tpl) => { mime: opts.mime, page: opts.page, fav: opts.mode == 'favs', - mode: req.session.mode + mode: req.session.mode, + session: !!req.session }); if(!data.success) {