feat: add ability to hide deleted or removed posts (#71)

* feat: add ability to hide deleted or removed posts

Add hidePosts.{deleted,removed} settings to control whether or not to
display posts that have been marked as deleted or removed.  By default,
these are enabled (ie. hidden) to correspond to Lemmy-UI behavior.

Currently, we only hide these posts for the front page and community
pages.

* feat: show removed posts by default

---------

Co-authored-by: Xyphyn <james@xylight.dev>
This commit is contained in:
Peter BuiandXyphyn authored and GitHub committed 2023-08-05 11:46:13 -07:00
1 parent 6ea697e3bc
commit 85468a5059
4 files changed
+33

No files matched your search

+14
View File
@@ -64,6 +64,20 @@
</span>
<Switch bind:enabled={$userSettings.showCompactPosts} />
</Setting>
<Setting>
<span slot="title">Hide Posts</span>
<span slot="description">Hide certain types of posts.</span>
<div class="flex flex-row items-center gap-4">
<div class="flex items-center gap-1 font-bold">
Deleted Posts
<Switch bind:enabled={$userSettings.hidePosts.deleted} />
</div>
<div class="flex items-center gap-1 font-bold">
Removed Posts
<Switch bind:enabled={$userSettings.hidePosts.removed} />
</div>
</div>
</Setting>
<h2 class="uppercase font-bold opacity-80 text-sm mt-4">Instances</h2>
<Setting>
<span slot="title">Show instances</span>