noop_policy.ex (433B)
1 # Pleroma: A lightweight social networking server 2 # Copyright © 2017-2019 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 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