logo

pleroma

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

policy.ex (728B)


  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.Policy do
  5. @callback filter(map()) :: {:ok | :reject, map()}
  6. @callback id_filter(String.t()) :: boolean()
  7. @callback describe() :: {:ok | :error, map()}
  8. @callback config_description() :: %{
  9. optional(:children) => [map()],
  10. key: atom(),
  11. related_policy: String.t(),
  12. label: String.t(),
  13. description: String.t()
  14. }
  15. @callback history_awareness() :: :auto | :manual
  16. @optional_callbacks config_description: 0, history_awareness: 0, id_filter: 1
  17. end