From fa2974619a39f91b9e740e11874f8a1de570ed91 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) (cherry picked from commit bf15fad240f601d3e0331c2012d2921441f51485) --- 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 a0ee647b79..4525e1e8d6 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 (