extend reject MRF to check if originating instance is blocked
[akkoma] / lib / pleroma / web / activity_pub / mrf / no_op_policy.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.ActivityPub.MRF.NoOpPolicy do
6 @moduledoc "Does nothing (lets the messages go through unmodified)"
7 @behaviour Pleroma.Web.ActivityPub.MRF.Policy
8
9 @impl true
10 def filter(object) do
11 {:ok, object}
12 end
13
14 @impl true
15 def describe, do: {:ok, %{}}
16 end