Merge branch 'admin_fe_dont_list_mrf_policies_any_more' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Sat, 28 Aug 2021 16:06:35 +0000 (16:06 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Sat, 28 Aug 2021 16:06:35 +0000 (16:06 +0000)
Selecting MRF policies didn't work as intended any more

Closes admin-fe#198

See merge request pleroma/pleroma!3509

lib/pleroma/web/activity_pub/mrf.ex
test/pleroma/docs/generator_test.exs

index 23ea039c34b24af5903c5a14d4338930887ab39c..e4ee8fe827fae7fdf827a517cb247fa708c1e054 100644 (file)
@@ -21,7 +21,7 @@ defmodule Pleroma.Web.ActivityPub.MRF do
           type: [:module, {:list, :module}],
           description:
             "A list of MRF policies enabled. Module names are shortened (removed leading `Pleroma.Web.ActivityPub.MRF.` part), but on adding custom module you need to use full name.",
-          suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF}
+          suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF.Policy}
         },
         %{
           key: :transparency,
index a9b09e5775278285bd795f6151e9d205b47deaf5..8574c1d5e7b77e92a094ea3232e6b8dafef3e697 100644 (file)
@@ -23,7 +23,7 @@ defmodule Pleroma.Docs.GeneratorTest do
           key: :filters,
           type: {:list, :module},
           description: "",
-          suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF}
+          suggestions: {:list_behaviour_implementations, Pleroma.Web.ActivityPub.MRF.Policy}
         },
         %{
           key: Pleroma.Upload,