Showing non-showcased batches in latest and upcoming, only meant to be excluded from new.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user