From: William Pitcock Date: Sat, 17 Nov 2018 18:11:31 +0000 (+0000) Subject: transmogrifier tests: fix defective spoofing test X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2ab8e287289d3b4d6458f6d9cc29c5d29dfcd102;p=akkoma transmogrifier tests: fix defective spoofing test --- 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"