Added descriptions to actor profile page, using profiles for secondary photos.

This commit is contained in:
2024-06-07 05:20:13 +02:00
parent e691aedc73
commit c33ea6064e
5 changed files with 35 additions and 55 deletions

View File

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