Improve handling of deleted posts
This commit is contained in:
parent
bf7b0be23d
commit
88c868dd80
8 changed files with 93 additions and 60 deletions
|
@ -43,6 +43,11 @@ export const FeedItem = observer(function FeedItem({
|
|||
}
|
||||
}, [item])
|
||||
|
||||
if (item.additionalPost?.notFound) {
|
||||
// don't render anything if the target post was deleted or unfindable
|
||||
return <View />
|
||||
}
|
||||
|
||||
if (item.isReply) {
|
||||
return (
|
||||
<Link href={itemHref} title={itemTitle}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue