public no untagged

This commit is contained in:
2026-08-13 21:33:08 +02:00
parent 9ec07e8e6c
commit 22db479bc2
7 changed files with 28 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import cfg from "../config.mjs";
import db from "../sql.mjs";
import lib from "../lib.mjs";
import f0cklib from "../routeinc/f0cklib.mjs";
export default (router, tpl) => {
// Serve the scroller page
@@ -163,7 +164,7 @@ export default (router, tpl) => {
const excludeIds = qs.exclude
? qs.exclude.split(',').map(n => parseInt(n, 10)).filter(n => !isNaN(n) && n > 0).slice(0, 500)
: [];
const modeQuery = lib.getMode(mode ?? 0);
const modeQuery = f0cklib.computeBaseMode(mode ?? 0, null, req.session);
const nsfp = cfg.nsfp?.length ? cfg.nsfp.map(n => `tag_id = ${n}`).join(' or ') : null;
// anchor= is a specific item ID to include first in the batch (used for hash-based deep links)
const anchorId = qs.anchor ? parseInt(qs.anchor, 10) : null;