Showing movie trailers. Added internal parameter for entity visibility.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user