about summary refs log tree commit diff
path: root/src/lib/api/feed-manip.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-31 21:14:53 +0100
committerGitHub <noreply@github.com>2024-08-31 13:14:53 -0700
commitbf15fad240f601d3e0331c2012d2921441f51485 (patch)
tree167c145cf00eb04c7f6682c06822fff756b7d5a1 /src/lib/api/feed-manip.ts
parent2df22d8674d6080e3f4af1184f84a9c2fcf07d56 (diff)
downloadvoidsky-bf15fad240f601d3e0331c2012d2921441f51485.tar.zst
Mark unhydrated replies as orphaned (#5048)
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r--src/lib/api/feed-manip.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts
index 094f892aa..d81f250b8 100644
--- a/src/lib/api/feed-manip.ts
+++ b/src/lib/api/feed-manip.ts
@@ -81,7 +81,15 @@ export class FeedViewPostsSlice {
       isParentBlocked,
       isParentNotFound,
     })
-    if (!reply || reason) {
+    if (!reply) {
+      if (post.record.reply) {
+        // This reply wasn't properly hydrated by the AppView.
+        this.isOrphan = true
+        this.items[0].isParentNotFound = true
+      }
+      return
+    }
+    if (reason) {
       return
     }
     if (