From 112c5e190f76a5e97153721597044ed7e6eca6c9 Mon Sep 17 00:00:00 2001 From: "immich-push-o-matic[bot]" <179150890+immich-push-o-matic[bot]@users.noreply.github.com> Date: Thu, 1 Oct 2026 15:55:52 +0000 Subject: [PATCH] fix(web): alt names (#31987) fix(web): alt names (#31980) (cherry picked from commit aecee4db94c33e05092c6e103bbfe4365046861a) Co-authored-by: Jason Rasmussen --- .../[[photos=photos]]/[[assetId=id]]/+page.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 2ca5bab81..347f4be04 100644 --- a/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/people/[personId]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -69,7 +69,9 @@ let numberOfAssets = $derived(data.statistics.assets); let person = $derived(data.person); - const altItems = $derived(person.otherPeople.filter(({ name }) => !!name && name !== person.name)); + const altNames = $derived([ + ...new Set(person.otherPeople.map(({ name }) => name).filter((name) => !!name && name !== person.name)), + ]); let thumbnailData = $derived(getPeopleThumbnailUrl(person)); let timelineManager = $state() as TimelineManager; @@ -400,10 +402,10 @@ aria-label={$t('edit')} /> - {#if altItems.length > 0} + {#if altNames.length > 0}

{$t('also_known_as')} - {new Intl.ListFormat($locale).format(altItems.map(({ name }) => name))} + {new Intl.ListFormat($locale).format(altNames)}

{/if}