Chain policies
authorhref <href@random.sh>
Thu, 10 May 2018 16:34:09 +0000 (18:34 +0200)
committerhref <href@random.sh>
Thu, 10 May 2018 16:41:06 +0000 (18:41 +0200)
commite9e6f37bda2620147a18eb0edb472a1aec46e8f9
treeafb264b3a7bcc67ef68a6432d5e7a02ba06bee71
parentffe028cd7392404c85ab65eca167a16e85b3f788
Chain policies

- The `:pleroma, :instance, :rewrite_policy` can now be either a policy
or a list of policies
- Made a behaviour for MRF policies
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/mrf.ex [new file with mode: 0644]
lib/pleroma/web/activity_pub/mrf/drop_policy.ex
lib/pleroma/web/activity_pub/mrf/noop_policy.ex
lib/pleroma/web/activity_pub/mrf/simple_policy.ex