transmogrifier tests: fix defective spoofing test
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:11:31 +0000 (18:11 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 17 Nov 2018 18:11:46 +0000 (18:11 +0000)
test/web/activity_pub/transmogrifier_test.exs

index 0278ef5d14a29c4b2f701cdfd9a6db356861d261..9250598f425ac877661e452c8134ae47258e3777 100644 (file)
@@ -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"