Fix self-threads filter logic (#2091)
This commit is contained in:
parent
41fd6eb95b
commit
570b78c32e
1 changed files with 2 additions and 2 deletions
|
@ -60,13 +60,13 @@ function isAuthorReplyChain(
|
||||||
posts: AppBskyFeedDefs.FeedViewPost[],
|
posts: AppBskyFeedDefs.FeedViewPost[],
|
||||||
): boolean {
|
): boolean {
|
||||||
// current post is by a different user (shouldn't happen)
|
// current post is by a different user (shouldn't happen)
|
||||||
if (post.post.author.handle !== actor) return false
|
if (post.post.author.did !== actor) return false
|
||||||
|
|
||||||
const replyParent = post.reply?.parent
|
const replyParent = post.reply?.parent
|
||||||
|
|
||||||
if (AppBskyFeedDefs.isPostView(replyParent)) {
|
if (AppBskyFeedDefs.isPostView(replyParent)) {
|
||||||
// reply parent is by a different user
|
// reply parent is by a different user
|
||||||
if (replyParent.author.handle !== actor) return false
|
if (replyParent.author.did !== actor) return false
|
||||||
|
|
||||||
// A top-level post that matches the parent of the current post.
|
// A top-level post that matches the parent of the current post.
|
||||||
const parentPost = posts.find(p => p.post.uri === replyParent.uri)
|
const parentPost = posts.find(p => p.post.uri === replyParent.uri)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue