mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 17:11:40 +00:00
e9e6f37bda
- The `:pleroma, :instance, :rewrite_policy` can now be either a policy or a list of policies - Made a behaviour for MRF policies
11 lines
228 B
Elixir
11 lines
228 B
Elixir
defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
|
|
require Logger
|
|
@behaviour Pleroma.Web.ActivityPub.MRF
|
|
|
|
@impl true
|
|
def filter(object) do
|
|
Logger.info("REJECTING #{inspect(object)}")
|
|
{:reject, object}
|
|
end
|
|
end
|