From e4e33df73633f4461030ec267e82c324decd7d3c Mon Sep 17 00:00:00 2001 From: Silberengel Date: Tue, 20 May 2025 07:01:41 +0200 Subject: [PATCH] Renamed publication eventid to address --- src/lib/components/PublicationFeed.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/PublicationFeed.svelte b/src/lib/components/PublicationFeed.svelte index 56cc4e1..ef3448f 100644 --- a/src/lib/components/PublicationFeed.svelte +++ b/src/lib/components/PublicationFeed.svelte @@ -63,9 +63,9 @@ return; } - const eventMap = new Map([...eventsInView, ...eventArray].map(event => [event.id, event])); + const eventMap = new Map([...eventsInView, ...eventArray].map(event => [event.tagAddress(), event])); const allEvents = Array.from(eventMap.values()); - const uniqueIds = new Set(allEvents.map(event => event.id)); + const uniqueIds = new Set(allEvents.map(event => event.tagAddress())); eventsInView = Array.from(uniqueIds) .map(id => eventMap.get(id)) .filter(event => event != null) as NDKEvent[];