transmogrifier tests: fix defective spoofing test
This commit is contained in:
parent
010fcb73d7
commit
2ab8e28728
@ -872,12 +872,10 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
|||||||
end
|
end
|
||||||
|
|
||||||
test "it rejects activities which reference objects with bogus origins" do
|
test "it rejects activities which reference objects with bogus origins" do
|
||||||
user = insert(:user, %{local: false})
|
|
||||||
|
|
||||||
data = %{
|
data = %{
|
||||||
"@context" => "https://www.w3.org/ns/activitystreams",
|
"@context" => "https://www.w3.org/ns/activitystreams",
|
||||||
"id" => user.ap_id <> "/activities/1234",
|
"id" => "https://mastodon.example.org/users/admin/activities/1234",
|
||||||
"actor" => user.ap_id,
|
"actor" => "https://mastodon.example.org/users/admin",
|
||||||
"to" => ["https://www.w3.org/ns/activitystreams#Public"],
|
"to" => ["https://www.w3.org/ns/activitystreams#Public"],
|
||||||
"object" => "https://info.pleroma.site/activity.json",
|
"object" => "https://info.pleroma.site/activity.json",
|
||||||
"type" => "Announce"
|
"type" => "Announce"
|
||||||
|
Loading…
Reference in New Issue
Block a user