From aef7b4cea48f1f480c72a001e383fe29c563bc01 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 15 Oct 2025 15:54:47 +0200 Subject: [PATCH] fix: include kind:30003 in default bookmark list detection Previously, the dedupeNip51Events function was only looking for kind:10003 and kind:30001 when finding the default bookmark list. This excluded kind:30003 events without a 'd' tag, which is what Primal uses for bookmarks. Now kind:30003 is properly included in the filter. --- src/services/bookmarkEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/bookmarkEvents.ts b/src/services/bookmarkEvents.ts index 88bade3d..a8c8220f 100644 --- a/src/services/bookmarkEvents.ts +++ b/src/services/bookmarkEvents.ts @@ -19,7 +19,7 @@ export function dedupeNip51Events(events: NostrEvent[]): NostrEvent[] { const webBookmarks = unique.filter(e => e.kind === 39701) const bookmarkLists = unique - .filter(e => e.kind === 10003 || e.kind === 30001) + .filter(e => e.kind === 10003 || e.kind === 30003 || e.kind === 30001) .sort((a, b) => (b.created_at || 0) - (a.created_at || 0)) const latestBookmarkList = bookmarkLists.find(list => !list.tags?.some((t: string[]) => t[0] === 'd'))