Determining location with restrictions disabled, cleaned up.

This commit is contained in:
2026-07-23 05:34:28 +02:00
parent 4c48700086
commit 77b27a56f7
28 changed files with 590 additions and 71 deletions

View File

@@ -4,7 +4,7 @@ export async function onBeforeRender(pageContext) {
const networks = await fetchEntities(pageContext.urlParsed.search.q
? { query: pageContext.urlParsed.search.q }
: { type: 'primary' }, {
restriction: pageContext.restriction,
restriction: pageContext.geo.restriction,
});
return {

View File

@@ -21,7 +21,7 @@ async function fetchReleases(pageContext, entityId) {
limit: Number(pageContext.urlParsed.search.limit) || 30,
aggregate: true,
}, pageContext.user, {
restriction: pageContext.restriction,
restriction: pageContext.geo.restriction,
});
}
@@ -35,7 +35,7 @@ async function fetchReleases(pageContext, entityId) {
limit: Number(pageContext.urlParsed.search.limit) || 30,
aggregate: true,
}, pageContext.user, {
restriction: pageContext.restriction,
restriction: pageContext.geo.restriction,
});
}
@@ -52,7 +52,7 @@ export async function onBeforeRender(pageContext) {
entityReleases,
] = await Promise.all([
fetchEntitiesById([Number(entityId)], { includeChildren: true }, pageContext.user, {
restriction: pageContext.restriction,
restriction: pageContext.geo.restriction,
}),
fetchReleases(pageContext, entityId),
]);