logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

no_op_policy.ex (440B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ActivityPub.MRF.NoOpPolicy do
  5. @moduledoc "Does nothing (lets the messages go through unmodified)"
  6. @behaviour Pleroma.Web.ActivityPub.MRF.Policy
  7. @impl true
  8. def filter(object) do
  9. {:ok, object}
  10. end
  11. @impl true
  12. def describe, do: {:ok, %{}}
  13. end