Hook up post shadow to saved posts (#9225)

This commit is contained in:
Eric Bailey
2025-10-20 05:05:49 -05:00
committed by GitHub
parent 73639aa571
commit 11dff765db
2 changed files with 50 additions and 1 deletions
+4
View File
@@ -8,6 +8,7 @@ import {type QueryClient} from '@tanstack/react-query'
import EventEmitter from 'eventemitter3'
import {batchedUpdates} from '#/lib/batchedUpdates'
import {findAllPostsInQueryData as findAllPostsInBookmarksQueryData} from '#/state/queries/bookmarks/useBookmarksQuery'
import {findAllPostsInQueryData as findAllPostsInExploreFeedPreviewsQueryData} from '#/state/queries/explore-feed-previews'
import {findAllPostsInQueryData as findAllPostsInNotifsQueryData} from '#/state/queries/notifications/feed'
import {findAllPostsInQueryData as findAllPostsInFeedQueryData} from '#/state/queries/post-feed'
@@ -190,4 +191,7 @@ function* findPostsInCache(
)) {
yield post
}
for (let post of findAllPostsInBookmarksQueryData(queryClient, uri)) {
yield post
}
}