Improve handling of deleted posts

This commit is contained in:
Paul Frazee
2022-11-28 16:37:39 -06:00
parent 2ac28aa2de
commit 6f56a8c539
8 changed files with 93 additions and 60 deletions
+5
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}>