potential fix for the last fucked up commits xd

This commit is contained in:
x
2026-01-24 10:58:22 +01:00
parent 9c9309435d
commit 2229f32dd3
4 changed files with 18 additions and 14 deletions

View File

@@ -56,6 +56,7 @@ export default (router, tpl) => {
// Inject missing variables normally provided by req or middleware
data.url = { pathname: `/${req.params.itemid}` }; // Template expects url.pathname
data.fullscreen = req.cookies.fullscreen || 0; // Index.mjs uses req.cookies.fullscreen
data.hidePagination = true;
// Render both the item content and the pagination
const itemHtml = tpl.render('ajax-item', data);