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
This commit is contained in:
parent
d35f7c1f1a
commit
5085861b9a
2 changed files with 31 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue