Showing movie trailers. Added internal parameter for entity visibility.

This commit is contained in:
2024-08-16 23:24:11 +02:00
parent cd6318216f
commit 50570cb734
5 changed files with 40 additions and 21 deletions

View File

@@ -72,12 +72,12 @@ const pageContext = inject('pageContext');
const { pageProps } = pageContext;
const { actor } = pageProps;
const photos = actor.profiles
const photos = Object.values(Object.fromEntries(actor.profiles
.filter((profile) => !!profile.avatar)
.map((profile) => ({
.map((profile) => [profile.avatar.id, {
...profile.avatar,
isAvatar: profile.avatar.id === actor.avatar.id,
}));
}])));
</script>
<style scoped>