Improve handling of deleted posts

This commit is contained in:
Paul Frazee 2022-11-28 16:37:39 -06:00
parent bf7b0be23d
commit 88c868dd80
8 changed files with 93 additions and 60 deletions

View file

@ -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}>