Mark unhydrated replies as orphaned (#5048)

zio/stable
dan 2024-08-31 21:14:53 +01:00 committed by GitHub
parent 2df22d8674
commit bf15fad240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -81,7 +81,15 @@ export class FeedViewPostsSlice {
isParentBlocked, isParentBlocked,
isParentNotFound, 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 return
} }
if ( if (