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
This commit is contained in:
Gigi
2025-10-02 10:21:44 +02:00
parent e3efcd4a7c
commit a625203fe4

View File

@@ -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