Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Prefer post over quote when finding cached post (#2935)

authored by

Hailey and committed by
GitHub
da62a77f 2e132a7a

+8 -1
+8 -1
src/state/queries/post-feed.ts
··· 391 391 >({ 392 392 queryKey: ['post-feed'], 393 393 }) 394 + 395 + let foundEmbed: AppBskyFeedDefs.PostView | undefined 396 + 394 397 for (const [_queryKey, queryData] of queryDatas) { 395 398 if (!queryData?.pages) { 396 399 continue ··· 402 405 } 403 406 const quotedPost = getEmbeddedPost(item.post.embed) 404 407 if (quotedPost?.uri === uri) { 405 - yield embedViewRecordToPostView(quotedPost) 408 + foundEmbed = embedViewRecordToPostView(quotedPost) 406 409 } 407 410 if ( 408 411 AppBskyFeedDefs.isPostView(item.reply?.parent) && ··· 418 421 } 419 422 } 420 423 } 424 + } 425 + 426 + if (foundEmbed) { 427 + yield foundEmbed 421 428 } 422 429 } 423 430