mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-22 07:33:44 +01:00
Hide posts that would be empty.
Hide posts that contain only text or only media if that content type is no displayed anyway.
This commit is contained in:
parent
d7fde80d06
commit
1be255ec4c
@ -198,6 +198,10 @@ const filterStatus = (cfg: Config, status: MastodonStatus) => {
|
||||
if (status.account?.suspended) return false;
|
||||
if (status.account?.limited) return false;
|
||||
|
||||
// Filter posts that would show up empty
|
||||
if(!cfg.showText && ! status.media_attachments?.length) return false;
|
||||
if(!cfg.showMedia && ! status.content.trim()) return false;
|
||||
|
||||
// Accept anything else
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user