This extension implements shadow-ban and shadow content deletion for Flarum.
When a discussion or post is shadow hidden, only the author and users with permission "Shadow hide discussions and posts" will see it.
A user can be shadow-banned for a given duration via their profile.
When a user is shadow-banned, all their new discussions and posts are automatically shadow hidden.
They are not restored when the shadow-ban ends.
Follow notifications (
flarum/subscriptions) and mentions (
flarum/mentions) are automatically silenced.
However, notifications of new discussions or posts by other extensions might not honour the shadow hide.
Optionally you can enable the users to be shadow hidden when shadow-banned.
When a user is shadow hidden, their profile will no longer be accessible by direct link, and they won't be offered in search and mention auto-completion.
However, their name is still visible on their previous non-hidden content and the user card/profile can be seen from there.
For the shadow-banned/hidden user, their content continues to be visible to them with no difference, including the REST API payload being completely identical to regular non-shadow-hidden content.
They can of course notice the shadow-ban by visiting the forum as guest or with a different account.
It's also possible to notice the shadow-ban due to the discussion meta not taking into account the user posts, including the last reply not reflecting their username and discussions not rising to the top of the homepage with their new reply.
composer require clarkwinkelmann/flarum-ext-shadow-ban
This extension is under active maintenance.
Bugfixes and compatibility updates will be published for free as time allows.
You can contact me to sponsor additional features.
Support is offered on a "best effort" basis through the Flarum community thread.