diff options
author | dan <dan.abramov@gmail.com> | 2024-08-31 21:14:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 13:14:53 -0700 |
commit | bf15fad240f601d3e0331c2012d2921441f51485 (patch) | |
tree | 167c145cf00eb04c7f6682c06822fff756b7d5a1 /src/lib/api | |
parent | 2df22d8674d6080e3f4af1184f84a9c2fcf07d56 (diff) | |
download | voidsky-bf15fad240f601d3e0331c2012d2921441f51485.tar.zst |
Mark unhydrated replies as orphaned (#5048)
Diffstat (limited to 'src/lib/api')
-rw-r--r-- | src/lib/api/feed-manip.ts | 10 |
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 ( |