MRF: create MRF.Policy behaviour separate from MRF module

Speeds up recompilation by reducing compile-time deps
This commit is contained in:
Alex Gleason 2021-06-07 14:22:08 -05:00
commit fe4c4a7178
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
29 changed files with 43 additions and 38 deletions

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule MRFModuleMock do
@behaviour Pleroma.Web.ActivityPub.MRF
@behaviour Pleroma.Web.ActivityPub.MRF.Policy
@impl true
def filter(message), do: {:ok, message}