mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
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:
@@ -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: []}
|
||||
|
||||
Reference in New Issue
Block a user