mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-01 06:14:07 +00:00
2641dcdd15
Rebased from #103 Co-authored-by: Tusooa Zhu <tusooa@kazv.moe> Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/202
18 lines
673 B
Elixir
18 lines
673 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Web.ActivityPub.MRF.Policy do
|
|
@callback filter(Map.t()) :: {:ok | :reject, Map.t()}
|
|
@callback describe() :: {:ok | :error, Map.t()}
|
|
@callback config_description() :: %{
|
|
optional(:children) => [map()],
|
|
key: atom(),
|
|
related_policy: String.t(),
|
|
label: String.t(),
|
|
description: String.t()
|
|
}
|
|
@callback history_awareness() :: :auto | :manual
|
|
@optional_callbacks config_description: 0, history_awareness: 0
|
|
end
|