diff options
author | rinpatch <rinpatch@sdf.org> | 2020-06-13 09:07:02 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-06-13 09:07:02 +0000 |
commit | f891e2b2f1d1daa122b9856e4b660be394d31e34 (patch) | |
tree | ed57c9e3ebf43d80a17a399baa54b01cd1c85eb9 /test/web/activity_pub | |
parent | 6c90fc8e70760bf8c58bb731ce294e9eee02f430 (diff) | |
parent | d050d21103d09fa62bd1ff1b6755c62980de3517 (diff) | |
download | pleroma-2.0.7.tar.gz |
Merge branch 'release/2.0.7' into 'stable'v2.0.7
Release/2.0.7
See merge request pleroma/secteam/pleroma!8
Diffstat (limited to 'test/web/activity_pub')
-rw-r--r-- | test/web/activity_pub/mrf/user_allowlist_policy_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/activity_pub/mrf/user_allowlist_policy_test.exs b/test/web/activity_pub/mrf/user_allowlist_policy_test.exs index 87c9e1b29..7dd03870b 100644 --- a/test/web/activity_pub/mrf/user_allowlist_policy_test.exs +++ b/test/web/activity_pub/mrf/user_allowlist_policy_test.exs @@ -17,14 +17,14 @@ defmodule Pleroma.Web.ActivityPub.MRF.UserAllowListPolicyTest do test "pass filter if allow list isn't empty and user in allow list" do actor = insert(:user) - Pleroma.Config.put([:mrf_user_allowlist, :localhost], [actor.ap_id, "test-ap-id"]) + Pleroma.Config.put([:mrf_user_allowlist], %{"localhost" => [actor.ap_id, "test-ap-id"]}) message = %{"actor" => actor.ap_id} assert UserAllowListPolicy.filter(message) == {:ok, message} end test "rejected if allow list isn't empty and user not in allow list" do actor = insert(:user) - Pleroma.Config.put([:mrf_user_allowlist, :localhost], ["test-ap-id"]) + Pleroma.Config.put([:mrf_user_allowlist], %{"localhost" => ["test-ap-id"]}) message = %{"actor" => actor.ap_id} assert UserAllowListPolicy.filter(message) == {:reject, nil} end |