From bf15fad240f601d3e0331c2012d2921441f51485 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 31 Aug 2024 21:14:53 +0100 Subject: [PATCH] Mark unhydrated replies as orphaned (#5048) --- src/lib/api/feed-manip.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index 094f892aa1..d81f250b80 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 (