Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Revert "Show some known OP replies in Following (#5049)" (#5301)

This reverts commit bff6aedecf007a4225bf30e1800933a9005cb0b2.

authored by

dan and committed by
GitHub
897d8ba7 86abeb80

+6 -21
+6 -21
src/lib/api/feed-manip.ts
··· 379 379 ): FeedViewPostsSlice[] => { 380 380 for (let i = 0; i < slices.length; i++) { 381 381 const slice = slices[i] 382 - if (slice.isReply && !shouldDisplayReplyInFollowing(slice, userDid)) { 382 + if ( 383 + slice.isReply && 384 + !slice.isRepost && 385 + !shouldDisplayReplyInFollowing(slice.getAuthors(), userDid) 386 + ) { 383 387 slices.splice(i, 1) 384 388 i-- 385 389 } ··· 443 447 } 444 448 445 449 function shouldDisplayReplyInFollowing( 446 - slice: FeedViewPostsSlice, 450 + authors: AuthorContext, 447 451 userDid: string, 448 452 ): boolean { 449 - if (slice.isRepost) { 450 - return true 451 - } 452 - const authors = slice.getAuthors() 453 453 const {author, parentAuthor, grandparentAuthor, rootAuthor} = authors 454 454 if (!isSelfOrFollowing(author, userDid)) { 455 455 // Only show replies from self or people you follow. ··· 462 462 ) { 463 463 // Always show self-threads. 464 464 return true 465 - } 466 - if ( 467 - parentAuthor && 468 - parentAuthor.did !== author.did && 469 - rootAuthor && 470 - rootAuthor.did === author.did && 471 - slice.items.length > 2 472 - ) { 473 - // If you follow A, show A -> someone[>0 likes] -> A chains too. 474 - // This is different from cases below because you only know one person. 475 - const parentPost = slice.items[1].post 476 - const parentLikeCount = parentPost.likeCount ?? 0 477 - if (parentLikeCount > 0) { 478 - return true 479 - } 480 465 } 481 466 // From this point on we need at least one more reason to show it. 482 467 if (