From 934768ebf233f49a87bb6579c7fc38369e0a9034 Mon Sep 17 00:00:00 2001 From: Gigi Date: Wed, 22 Oct 2025 01:01:04 +0200 Subject: [PATCH] chore: remove debug logging from hydration --- src/services/bookmarkHelpers.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/services/bookmarkHelpers.ts b/src/services/bookmarkHelpers.ts index 2379f72c..3795d5a7 100644 --- a/src/services/bookmarkHelpers.ts +++ b/src/services/bookmarkHelpers.ts @@ -170,7 +170,7 @@ export function hydrateItems( items: IndividualBookmark[], idToEvent: Map ): IndividualBookmark[] { - const hydrated = items + return items .map(item => { const ev = idToEvent.get(item.id) if (!ev) return item @@ -202,15 +202,6 @@ export function hydrateItems( const isBookmarkListEvent = item.kind === 10003 || item.kind === 30003 || item.kind === 30001 return !isBookmarkListEvent }) - - // Debug: log how many items have content - const withContent = hydrated.filter(i => i.content && i.content.length > 0) - const notFound = items.filter(i => !idToEvent.has(i.id)) - if (hydrated.length > 0) { - console.log(`📝 Hydrated ${withContent.length}/${hydrated.length} have content, ${notFound.length}/${items.length} not found in map`) - } - - return hydrated } // Note: event decryption/collection lives in `bookmarkProcessing.ts`