diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-11-17 18:11:31 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-11-17 18:11:46 +0000 |
commit | 2ab8e287289d3b4d6458f6d9cc29c5d29dfcd102 (patch) | |
tree | 85c5019aa8119b5a477366bdceb866b4fae2c5b8 | |
parent | 010fcb73d7e308c15b3f2c10fa27bd49d25d56cf (diff) | |
download | pleroma-2ab8e287289d3b4d6458f6d9cc29c5d29dfcd102.tar.gz |
transmogrifier tests: fix defective spoofing test
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 0278ef5d1..9250598f4 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -872,12 +872,10 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest 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" |