WIP: BlockPolicy: Notify local users upon remote block.
I made BlockPolicy less sinful (actually uses pleroma builtins) and more feature rich, but the syntax is still a crime against fp -- please tell me what to fix.
Features:
- Notifies users upon Block and Undo Block
- Bot user (which notifies) is configurable via
:mrf_blockpolicy, :user
- Does not notify local<->local blocks by default (can be configured with
:mrf_blockpolicy, :display_local
) - If you block someone, you will not be notified of their Block/Unblock activities. This is to prevent spam.
Todo:
-
I don't know what pattern matching is, but maybe I should add that? -
Write a test?
I'm sorry if this is too horrible for upstream.