fix: close #279, deleted/removed posts are still shown

This commit is contained in:
Xylight committed 2024-03-15 14:34:51 -07:00
1 parent c7e3f4d56e
commit df0cfbd932
5 files changed
+23 -7

No files matched your search

@@ -302,7 +302,15 @@
{/if}
<Comments
post={post.post_view.post}
nodes={buildCommentsTree(data.comments.comments)}
nodes={buildCommentsTree(
data.comments.comments,
undefined,
(c) =>
!(
($userSettings.hidePosts.deleted && c.comment.deleted) ||
($userSettings.hidePosts.removed && c.comment.removed)
)
)}
isParent={true}
/>
{#if post.post_view.counts.comments > 5}