summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-10-05 12:46:06 +0200
committerThibaut Girka <thib@sitedethib.com>2019-10-05 13:56:40 +0200
commitb1ff66dc5f0f3915152314677bcd2379be0dd43b (patch)
treec717400ef4e504c94fe40c73e59fec78cdcd2d8a /test/fixtures
parent791d93ff0ecb304e3278b786e66689521e9ad19d (diff)
downloadpleroma-b1ff66dc5f0f3915152314677bcd2379be0dd43b.tar.gz
pleroma-b1ff66dc5f0f3915152314677bcd2379be0dd43b.zip
Add test for handling Announces with inlined object from different origin
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/bogus-mastodon-announce.json43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/fixtures/bogus-mastodon-announce.json b/test/fixtures/bogus-mastodon-announce.json
new file mode 100644
index 000000000..0485b80b9
--- /dev/null
+++ b/test/fixtures/bogus-mastodon-announce.json
@@ -0,0 +1,43 @@
+{
+ "type": "Announce",
+ "to": [
+ "https://www.w3.org/ns/activitystreams#Public"
+ ],
+ "published": "2018-02-17T19:39:15Z",
+ "object": {
+ "type": "Note",
+ "id": "https://mastodon.social/users/emelie/statuses/101849165031453404",
+ "attributedTo": "https://mastodon.social/users/emelie",
+ "content": "this is a public toot",
+ "to": [
+ "https://www.w3.org/ns/activitystreams#Public"
+ ],
+ "cc": [
+ "https://mastodon.social/users/emelie",
+ "https://mastodon.social/users/emelie/followers"
+ ]
+ },
+ "id": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity",
+ "cc": [
+ "http://mastodon.example.org/users/admin",
+ "http://mastodon.example.org/users/admin/followers"
+ ],
+ "atomUri": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity",
+ "actor": "http://mastodon.example.org/users/admin",
+ "@context": [
+ "https://www.w3.org/ns/activitystreams",
+ "https://w3id.org/security/v1",
+ {
+ "toot": "http://joinmastodon.org/ns#",
+ "sensitive": "as:sensitive",
+ "ostatus": "http://ostatus.org#",
+ "movedTo": "as:movedTo",
+ "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
+ "inReplyToAtomUri": "ostatus:inReplyToAtomUri",
+ "conversation": "ostatus:conversation",
+ "atomUri": "ostatus:atomUri",
+ "Hashtag": "as:Hashtag",
+ "Emoji": "toot:Emoji"
+ }
+ ]
+}