about summary refs log tree commit diff
path: root/src/lib/api/feed
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-05 20:22:06 -0600
committerGitHub <noreply@github.com>2023-12-05 18:22:06 -0800
commit570b78c32eda7b3d40156d73be04f371834ac626 (patch)
tree8a3a3d02dc1447463799d9e2e85f33b5c70e695f /src/lib/api/feed
parent41fd6eb95b5f9f863a29b098385366496a032626 (diff)
downloadvoidsky-570b78c32eda7b3d40156d73be04f371834ac626.tar.zst
Fix self-threads filter logic (#2091)
Diffstat (limited to 'src/lib/api/feed')
-rw-r--r--src/lib/api/feed/author.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/api/feed/author.ts b/src/lib/api/feed/author.ts
index 92df84f8b..74af383d1 100644
--- a/src/lib/api/feed/author.ts
+++ b/src/lib/api/feed/author.ts
@@ -60,13 +60,13 @@ function isAuthorReplyChain(
   posts: AppBskyFeedDefs.FeedViewPost[],
 ): boolean {
   // 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
 
   if (AppBskyFeedDefs.isPostView(replyParent)) {
     // 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.
     const parentPost = posts.find(p => p.post.uri === replyParent.uri)