transmogrifier tests: fix defective spoofing test

This commit is contained in:
William Pitcock 2018-11-17 18:11:31 +00:00
parent 010fcb73d7
commit 2ab8e28728

View file

@ -872,12 +872,10 @@ test "it rejects objects with a bogus origin" do
end
test "it rejects activities which reference objects with bogus origins" do
user = insert(:user, %{local: false})
data = %{
"@context" => "https://www.w3.org/ns/activitystreams",
"id" => user.ap_id <> "/activities/1234",
"actor" => user.ap_id,
"id" => "https://mastodon.example.org/users/admin/activities/1234",
"actor" => "https://mastodon.example.org/users/admin",
"to" => ["https://www.w3.org/ns/activitystreams#Public"],
"object" => "https://info.pleroma.site/activity.json",
"type" => "Announce"