Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
2ab8e287
Commit
2ab8e287
authored
Nov 17, 2018
by
kaniini
Browse files
transmogrifier tests: fix defective spoofing test
parent
010fcb73
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/web/activity_pub/transmogrifier_test.exs
View file @
2ab8e287
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment