Excluding actor-specific tags from aggregated tag filter.

This commit is contained in:
2026-03-05 02:00:10 +01:00
parent eefc213144
commit 07f290ad85
2 changed files with 21 additions and 7 deletions

View File

@@ -81,7 +81,7 @@
<ul
class="row tags nolist"
:title="scene.tags.map((tag) => tag.name).join(', ')"
:title="sceneTags.map((tag) => tag.name).join(', ')"
>
<li
v-if="scene.shootId"
@@ -94,7 +94,7 @@
</li>
<li
v-for="tag in scene.tags"
v-for="tag in sceneTags"
:key="`tag-${scene.id}-${tag.id}`"
class="tag"
:class="{ piss: tag.slug === 'pissing' }"
@@ -135,7 +135,9 @@ const { user } = pageContext;
const pageStash = pageContext.pageProps.stash;
const currentStash = pageStash || pageContext.assets?.primaryStash;
const priorityTags = props.scene.tags.map((tag) => tag.name).slice(0, 2);
const sceneTags = Object.values(Object.fromEntries(props.scene.tags.map((tag) => [tag.id, tag])));
const priorityTags = sceneTags.map((tag) => tag.name).slice(0, 2);
const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === currentStash?.id));
</script>