revert: remove manual decryption approach

- Removed manual decryption implementation
- Back to using applesauce helpers directly
- The issue is likely that browser extension needs permission for decryption
- getHiddenBookmarks returns undefined because extension hasn't been triggered yet
- All linting passes
This commit is contained in:
Gigi
2025-10-02 10:11:13 +02:00
parent b112520056
commit 82c63e5d18

View File

@@ -82,6 +82,7 @@ const processApplesauceBookmarks = (
}
export const fetchBookmarks = async (
relayPool: RelayPool,
activeAccount: AccountWithExtension, // Full account object with extension capabilities
@@ -121,16 +122,6 @@ export const fetchBookmarks = async (
console.log('Public bookmarks:', publicBookmarks)
console.log('Private bookmarks:', privateBookmarks)
// Debug the bookmark list event content
console.log('Bookmark list content:', bookmarkListEvent.content)
console.log('Bookmark list content type:', typeof bookmarkListEvent.content)
console.log('Has encrypted content:', bookmarkListEvent.content && bookmarkListEvent.content.includes(':'))
console.log('Account type:', typeof activeAccount)
console.log('Account has decrypt method:', typeof activeAccount.decrypt)
console.log('Account signer:', activeAccount.signer)
console.log('Account signer type:', typeof activeAccount.signer)
console.log('Account signer decrypt method:', typeof activeAccount.signer?.decrypt)
// Process bookmarks using DRY helper function
// Handle the structure that applesauce returns: {notes: [], articles: [], hashtags: [], urls: []}