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}
+2 -2
View File
@@ -191,9 +191,9 @@
description="Blur images and remove post bodies of NSFW content."
/>
<Setting>
<span slot="title">Hide Posts</span>
<span slot="title">Hide Submissions</span>
<span slot="description">
<p>Hide certain types of posts.</p>
<p>Hide certain types of submissions.</p>
<p>
Looking to hide read posts? That was moved to your <Link
href="/profile/settings"