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:
1 parent
6ea697e3bc
commit
85468a5059
4 files changed
+33
No files matched your search
@@ -17,6 +17,10 @@ interface Settings {
|
||||
sort: SortType
|
||||
feed: 'All' | 'Subscribed' | 'Local'
|
||||
}
|
||||
hidePosts: {
|
||||
deleted: boolean,
|
||||
removed: boolean,
|
||||
},
|
||||
fullWidthLayout: boolean
|
||||
expandSidebar: boolean
|
||||
}
|
||||
@@ -36,6 +40,10 @@ const defaultSettings: Settings = {
|
||||
sort: 'Active',
|
||||
feed: 'Local',
|
||||
},
|
||||
hidePosts: {
|
||||
deleted: true,
|
||||
removed: false,
|
||||
},
|
||||
fullWidthLayout: false,
|
||||
expandSidebar: true,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user