Excluding actor-specific tags from aggregated tag filter.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user