From bf15fad240f601d3e0331c2012d2921441f51485 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 31 Aug 2024 21:14:53 +0100 Subject: Mark unhydrated replies as orphaned (#5048) --- src/lib/api/feed-manip.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib/api/feed-manip.ts') 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 ( -- cgit 1.4.1