summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 20:31:20 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 20:31:20 +0000
commit55640c4804d1fe1c39b155f8acd5f820425fb7f6 (patch)
treedcf20311284ef4737def960bcb1e46a374cfb17b /test/web
parentdc1d8e13b483d6e5df4ea6432aa3e37971bb3fb1 (diff)
downloadpleroma-55640c4804d1fe1c39b155f8acd5f820425fb7f6.tar.gz
pleroma-55640c4804d1fe1c39b155f8acd5f820425fb7f6.zip
tests: add a test to verify the general fake direction protection works in all cases
Diffstat (limited to 'test/web')
-rw-r--r--test/web/activity_pub/transmogrifier_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs
index f8a82dd5b..9174d9b76 100644
--- a/test/web/activity_pub/transmogrifier_test.exs
+++ b/test/web/activity_pub/transmogrifier_test.exs
@@ -967,5 +967,12 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
{:error, _} = User.get_or_fetch_by_ap_id("https://n1u.moe/users/rye")
end
+
+ test "all objects with fake directions are rejected by the object fetcher" do
+ {:error, _} =
+ ActivityPub.fetch_and_contain_remote_object_from_id(
+ "https://info.pleroma.site/activity4.json"
+ )
+ end
end
end