mirror of
https://github.com/dergigi/boris.git
synced 2026-01-25 09:44:48 +01:00
feat: store nostrverse content in centralized event store
- Add eventStore parameter to fetchNostrverseBlogPosts - Add eventStore parameter to fetchNostrverseHighlights - Pass eventStore from Explore component to nostrverse fetchers - Store all nostrverse blog posts and highlights in event store - Enables offline access to nostrverse content
This commit is contained in:
@@ -184,8 +184,8 @@ const Explore: React.FC<ExploreProps> = ({ relayPool, eventStore, settings, acti
|
||||
const [friendsPosts, friendsHighlights, nostrversePosts, nostriverseHighlights] = await Promise.all([
|
||||
fetchBlogPostsFromAuthors(relayPool, contactsArray, relayUrls),
|
||||
fetchHighlightsFromAuthors(relayPool, contactsArray),
|
||||
fetchNostrverseBlogPosts(relayPool, relayUrls, 50),
|
||||
fetchNostrverseHighlights(relayPool, 100)
|
||||
fetchNostrverseBlogPosts(relayPool, relayUrls, 50, eventStore || undefined),
|
||||
fetchNostrverseHighlights(relayPool, 100, eventStore || undefined)
|
||||
])
|
||||
|
||||
// Merge and deduplicate all posts
|
||||
|
||||
Reference in New Issue
Block a user