Fixed actor scene length check in redirect, removed stray console log.

This commit is contained in:
2026-07-13 00:54:52 +02:00
parent 5dbcf81d84
commit 02b7dcb292
2 changed files with 1 additions and 3 deletions

View File

@@ -19,8 +19,6 @@ const domain = routeParams.domain;
const badCredits = ['Pierre Woodman']; // consistently horrible photos
const photos = actor.photos.filter((photo) => photo.entropy > 5.5 && !badCredits.includes(photo.credit));
const aliasTooltipId = useId();
console.log(actor);
</script>
<template>

View File

@@ -59,7 +59,7 @@ export async function onBeforeRender(pageContext) {
isEditing && fetchCountries(),
]);
if (actor.alias && actorReleases.length === 0 && !Object.hasOwn(pageContext.urlParsed.search, 'inspect')) {
if (actor.alias && actorReleases.scenes.length === 0 && !Object.hasOwn(pageContext.urlParsed.search, 'inspect')) {
throw redirect(`/actor/${actor.alias.id}/${actor.alias.slug}`);
}