Added movie page. Added stash button to movies.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { render } from 'vike/abort'; /* eslint-disable-line import/extensions */
|
||||
|
||||
import { fetchActorsById } from '#/src/actors.js';
|
||||
import { fetchScenes } from '#/src/scenes.js';
|
||||
import { curateScenesQuery } from '#/src/web/scenes.js';
|
||||
@@ -16,6 +18,10 @@ export async function onBeforeRender(pageContext) {
|
||||
}, pageContext.user),
|
||||
]);
|
||||
|
||||
if (!actor) {
|
||||
throw render(404, `Cannot find actor '${pageContext.routeParams.actorId}'.`);
|
||||
}
|
||||
|
||||
const {
|
||||
scenes,
|
||||
aggActors,
|
||||
|
||||
Reference in New Issue
Block a user