mirror of
https://github.com/dergigi/boris.git
synced 2026-01-18 06:14:27 +01:00
fix(bookmarks): show eventStore content as fallback for bookmarks without hydrated content
- Enrich bookmarks with content from externalEventStore when hydration hasn't populated yet - Keeps sidebar from showing only event IDs while background hydration continues
This commit is contained in:
@@ -293,7 +293,10 @@ class BookmarkController {
|
||||
const enriched = allBookmarks.map(b => ({
|
||||
...b,
|
||||
tags: b.tags || [],
|
||||
content: b.content || ''
|
||||
// Prefer hydrated content; fallback to any cached event content in external store
|
||||
content: b.content && b.content.length > 0
|
||||
? b.content
|
||||
: (this.externalEventStore?.getEvent(b.id)?.content || '')
|
||||
}))
|
||||
|
||||
const sortedBookmarks = enriched
|
||||
|
||||
Reference in New Issue
Block a user