config :mrf, :transparency_exclusions works with tumples now
This commit is contained in:
parent
e8a04e4f83
commit
8e725c5acb
@ -240,7 +240,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
|
||||
|
||||
@impl true
|
||||
def describe do
|
||||
exclusions = Config.get([:mrf, :transparency_exclusions])
|
||||
exclusions = Config.get([:mrf, :transparency_exclusions]) |> MRF.instance_list_from_tuples()
|
||||
|
||||
mrf_simple =
|
||||
Config.get(:mrf_simple)
|
||||
|
@ -172,7 +172,7 @@ defmodule Pleroma.Web.NodeInfoTest do
|
||||
test "it performs exclusions from MRF transparency data if configured", %{conn: conn} do
|
||||
clear_config([:mrf, :policies], [Pleroma.Web.ActivityPub.MRF.SimplePolicy])
|
||||
clear_config([:mrf, :transparency], true)
|
||||
clear_config([:mrf, :transparency_exclusions], ["other.site"])
|
||||
clear_config([:mrf, :transparency_exclusions], [{"other.site", "We don't want them to know"}])
|
||||
|
||||
simple_config = %{"reject" => [{"example.com", ""}, {"other.site", ""}]}
|
||||
clear_config(:mrf_simple, simple_config)
|
||||
|
Loading…
Reference in New Issue
Block a user