mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
debug: add logging for event ID requests
- Log how many note IDs and coordinates we're requesting - Log how many unique event IDs are passed to EventLoader - Track if all bookmarks are being requested for hydration
This commit is contained in:
@@ -135,6 +135,8 @@ class BookmarkController {
|
||||
return
|
||||
}
|
||||
|
||||
console.log(`📡 hydrateByIds: requesting ${unique.length} events from EventLoader`)
|
||||
|
||||
// Convert IDs to EventPointers
|
||||
const pointers: EventPointer[] = unique.map(id => ({ id }))
|
||||
|
||||
@@ -265,6 +267,8 @@ class BookmarkController {
|
||||
}
|
||||
})
|
||||
|
||||
console.log(`📋 Requesting hydration for: ${noteIds.length} note IDs, ${coordinates.length} coordinates`)
|
||||
|
||||
// Helper to build and emit bookmarks
|
||||
const emitBookmarks = (idToEvent: Map<string, NostrEvent>) => {
|
||||
const allBookmarks = dedupeBookmarksById([
|
||||
|
||||
Reference in New Issue
Block a user