Showing non-showcased batches in latest and upcoming, only meant to be excluded from new.

This commit is contained in:
2026-11-13 22:56:51 +01:00
parent 121d31d325
commit 3645c2a0e6
9 changed files with 37 additions and 10 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import { curateScenesQuery } from '#/src/web/scenes.js';
export async function onBeforeRender(pageContext) {
const withQuery = Object.hasOwn(pageContext.urlParsed.search, 'q');
const scope = pageContext.routeParams.scope || 'latest';
const [
sceneResults,
@@ -11,8 +12,10 @@ export async function onBeforeRender(pageContext) {
] = await Promise.all([
fetchScenes(await curateScenesQuery({
...pageContext.urlQuery,
scope: pageContext.routeParams.scope || 'latest',
scope,
isShowcased: withQuery ? null : true,
// New sorts by scrape date, so large scrape batches would drown it out, they still show up in Latest and Upcoming
isBatchShowcased: !withQuery && scope === 'new' ? true : null,
tagFilter: pageContext.tagFilter,
}), {
page: Number(pageContext.routeParams.page) || 1,