From a625203fe4c946e32e5c873bc282f11dd4cde211 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 2 Oct 2025 10:21:44 +0200 Subject: [PATCH] refactor: clean up bookmark service and use proper applesauce approach - Remove unused imports and variables - Keep the enhanced debugging for multiple bookmark list events - Use native applesauce getHiddenBookmarks which should trigger browser extension - This follows the applesauce models pattern for handling private bookmarks --- src/services/bookmarkService.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/services/bookmarkService.ts b/src/services/bookmarkService.ts index a4b0732f..391e1a10 100644 --- a/src/services/bookmarkService.ts +++ b/src/services/bookmarkService.ts @@ -116,7 +116,6 @@ export const fetchBookmarks = async ( // Check all bookmark list events for encrypted content let bookmarkListEvent = null - let hasEncryptedContent = false for (let i = 0; i < bookmarkListEvents.length; i++) { const event = bookmarkListEvents[i] @@ -134,7 +133,6 @@ export const fetchBookmarks = async ( if (isEncrypted) { console.log(` 🎯 FOUND ENCRYPTED CONTENT in event ${i}!`) bookmarkListEvent = event - hasEncryptedContent = true break } } @@ -153,7 +151,6 @@ export const fetchBookmarks = async ( const publicBookmarks = Helpers.getPublicBookmarks(bookmarkListEvent) console.log('Public bookmarks:', publicBookmarks) - console.log('Has encrypted content:', hasEncryptedContent) console.log('Content preview:', bookmarkListEvent.content?.substring(0, 100)) // Try to get private bookmarks - this should trigger browser extension if needed