summaryrefslogtreecommitdiff
path: root/test/fixtures/modules
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-11-10 19:18:53 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-11-10 19:20:14 +0300
commit485697d96c6a45127af22b9a5f357c3802dba73c (patch)
treef5a07105ae4c6ec33057a4c8db3b90dac7c44e74 /test/fixtures/modules
parentdb07b538a511b315a3638f3d0b1abfb4877d10c9 (diff)
downloadpleroma-485697d96c6a45127af22b9a5f357c3802dba73c.tar.gz
pleroma-485697d96c6a45127af22b9a5f357c3802dba73c.zip
config descriptions for custom MRF policies
Diffstat (limited to 'test/fixtures/modules')
-rw-r--r--test/fixtures/modules/good_mrf.ex19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixtures/modules/good_mrf.ex b/test/fixtures/modules/good_mrf.ex
new file mode 100644
index 000000000..39d0f14ec
--- /dev/null
+++ b/test/fixtures/modules/good_mrf.ex
@@ -0,0 +1,19 @@
+defmodule Fixtures.Modules.GoodMRF do
+ @behaviour Pleroma.Web.ActivityPub.MRF
+
+ @impl true
+ def filter(a), do: {:ok, a}
+
+ @impl true
+ def describe, do: %{}
+
+ @impl true
+ def config_description do
+ %{
+ key: :good_mrf,
+ related_policy: "Fixtures.Modules.GoodMRF",
+ label: "Good MRF",
+ description: "Some description"
+ }
+ end
+end