diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-22 18:35:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 18:35:12 -0500 |
commit | 5085861b9ac0684d8eedb2a8d54453d3f23cde46 (patch) | |
tree | ec83207869ea31783257dfdfe29cb7258828f8bc /src/state/models/feeds/posts.ts | |
parent | d35f7c1f1a9f35958ff3f6dacd002e31b0a824b0 (diff) | |
download | voidsky-5085861b9ac0684d8eedb2a8d54453d3f23cde46.tar.zst |
Feed fixes: repeat posts & nonreplies showing up in the wrong place (#516)
* Fix the repeat posts issue on the home feed * Fix: replies no longer show up in the no-replies feed
Diffstat (limited to 'src/state/models/feeds/posts.ts')
-rw-r--r-- | src/state/models/feeds/posts.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts index 58167284d..dd342775e 100644 --- a/src/state/models/feeds/posts.ts +++ b/src/state/models/feeds/posts.ts @@ -294,12 +294,10 @@ export class PostsFeedModel { const isRepost = item?.reasonRepost?.by?.handle === params.actor || item?.reasonRepost?.by?.did === params.actor - return ( - !item.reply || // not a reply - isRepost || // but allow if it's a repost - (slice.isThread && // or a thread by the user - item.reply?.root.author.did === item.post.author.did) - ) + const allow = + !item.postRecord?.reply || // not a reply + isRepost // but allow if it's a repost + return allow }) } else { return this.slices |