this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add bookmarks to thread placeholder candidates (#10080)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

authored by

Samuel Newman
Claude Opus 4.6 (1M context)
and committed by
GitHub
e28f6d2f 3e7d7ce5

+9 -2
+9 -2
src/state/queries/usePostThread/queryCache.ts
··· 14 14 dangerousGetPostShadow, 15 15 updatePostShadow, 16 16 } from '#/state/cache/post-shadow' 17 + import {findAllPostsInQueryData as findAllPostsInBookmarksQueryData} from '#/state/queries/bookmarks/useBookmarksQuery' 17 18 import {findAllPostsInQueryData as findAllPostsInExploreFeedPreviewsQueryData} from '#/state/queries/explore-feed-previews' 18 19 import {findAllPostsInQueryData as findAllPostsInNotifsQueryData} from '#/state/queries/notifications/feed' 19 20 import {findAllPostsInQueryData as findAllPostsInFeedQueryData} from '#/state/queries/post-feed' ··· 30 31 } from '#/state/queries/usePostThread/types' 31 32 import {getRootPostAtUri} from '#/state/queries/usePostThread/utils' 32 33 import {postViewToThreadPlaceholder} from '#/state/queries/usePostThread/views' 33 - import {didOrHandleUriMatches, getEmbeddedPost} from '#/state/queries/util' 34 - import {embedViewRecordToPostView} from '#/state/queries/util' 34 + import { 35 + didOrHandleUriMatches, 36 + embedViewRecordToPostView, 37 + getEmbeddedPost, 38 + } from '#/state/queries/util' 35 39 36 40 export function createCacheMutator({ 37 41 queryClient, ··· 256 260 yield postViewToThreadPlaceholder(post) 257 261 } 258 262 for (let post of findAllPostsInSearchQueryData(queryClient, uri)) { 263 + yield postViewToThreadPlaceholder(post) 264 + } 265 + for (let post of findAllPostsInBookmarksQueryData(queryClient, uri)) { 259 266 yield postViewToThreadPlaceholder(post) 260 267 } 261 268 for (let post of findAllPostsInExploreFeedPreviewsQueryData(