misc: move 'hide read posts' to user settings

This commit is contained in:
Xyphyn committed 2023-08-11 14:44:00 -07:00
1 parent 61a483e9ef
commit e8f7501c62
3 files changed
+13 -5

No files matched your search

@@ -23,7 +23,7 @@
</div>
{:else}
{#each posts as post, index (post.post.id)}
{#if !($userSettings.hidePosts.deleted && post.post.deleted) && !($userSettings.hidePosts.removed && post.post.removed) && !($userSettings.hidePosts.read && post.read)}
{#if !($userSettings.hidePosts.deleted && post.post.deleted) && !($userSettings.hidePosts.removed && post.post.removed)}
<div
in:fly={{
y: -8,
-2
View File
@@ -21,7 +21,6 @@ interface Settings {
hidePosts: {
deleted: boolean
removed: boolean
read: boolean
}
fullWidthLayout: boolean
expandSidebar: boolean
@@ -53,7 +52,6 @@ const defaultSettings: Settings = {
hidePosts: {
deleted: true,
removed: false,
read: false,
},
fullWidthLayout: false,
expandSidebar: true,