[PLUGIN][ActivityPub][Tests] Add some fixtures for GNU social's

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-13 15:53:21 +00:00
parent 2d7850ccfb
commit 7d84323df4
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0
9 changed files with 386 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
"type": "Create",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/activity/1337",
"published": "2022-03-01T20:58:48+00:00",
"actor": "https://testv3.gnusocial.rocks/actor/42",
"object": {
"type": "Note",
"id": "https://testv3.gnusocial.rocks/object/note/1337",
"published": "2022-03-10T23:07:50+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"content": "<p>hello, world.</p>",
"mediaType": "text/html",
"source": {
"content": "hello, world.",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inConversation": "https://testv3.gnusocial.rocks/conversation/1337",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
},
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
}

View File

@ -0,0 +1,55 @@
{
"type": "Create",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/activity/1338",
"published": "2022-03-01T18:19:51+00:00",
"actor": "https://testv3.gnusocial.rocks/actor/42",
"object": {
"type": "Page",
"id": "https://testv3.gnusocial.rocks/object/note/1338",
"published": "2022-03-01T22:44:29+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"name": "hello, world.",
"content": "<p>This is an interesting page.</p>",
"mediaType": "text/html",
"source": {
"content": "This is an interesting page.",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inConversation": "https://testv3.gnusocial.rocks/conversation/1338",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers",
"https://testv3.gnusocial.rocks/actor/21"
]
},
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers",
"https://testv3.gnusocial.rocks/actor/21"
]
}

View File

@ -0,0 +1,53 @@
{
"type": "Create",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/activity/1339",
"published": "2022-03-01T20:58:48+00:00",
"actor": "https://testv3.gnusocial.rocks/actor/42",
"object": {
"type": "Note",
"id": "https://testv3.gnusocial.rocks/object/note/1339",
"published": "2022-03-01T21:00:16+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"content": "<p>yay ^^</p>",
"mediaType": "text/html",
"source": {
"content": "yay ^^",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inReplyTo": "https://testv3.gnusocial.rocks/object/note/1338",
"inConversation": "https://testv3.gnusocial.rocks/conversation/1338",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
},
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
}

View File

@ -0,0 +1,19 @@
[
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
]

View File

@ -0,0 +1,42 @@
{
"type": "Group",
"streams": [],
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/actor/21",
"inbox": "https://testv3.gnusocial.rocks/actor/21/inbox.json",
"outbox": "https://testv3.gnusocial.rocks/actor/21/outbox.json",
"following": "https://testv3.gnusocial.rocks/actor/21/subscriptions",
"followers": "https://testv3.gnusocial.rocks/actor/21/subscribers",
"liked": "https://testv3.gnusocial.rocks/actor/21/favourites",
"preferredUsername": "hackers",
"publicKey": {
"id": "https://testv3.gnusocial.rocks/actor/2#public-key",
"owner": "https://testv3.gnusocial.rocks/actor/2",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoZyKL+GyJbTV/ilVBlzz\n8OL/UwNi3KpfV5kQwXU0pPcBbw6y2JOfWnKUT1CfiHG3ntiOFnc+wQfHZk4hRSE8\n9Xe/G5Y215xW+gqx/kjt2GOENqzSzYXdEZ5Qsx6yumZD/yb6VZK9Og0HjX2mpRs9\nbactY76w4BQVntjZ17gSkMhYcyPFZTAIe7QDkeSPk5lkXfTwtaB3YcJSbQ3+s7La\npeEgukQDkrLUIP6cxayKrgUl4fhHdpx1Yk4Bzd/1XkZCjeBca94lP1p2M12amI+Z\nOLSTuLyEiCcku8aN+Ms9plwATmIDaGvKFVk0YVtBHdIJlYXV0yIscab3bqyhsLBK\njwIDAQAB\n-----END PUBLIC KEY-----\n"
},
"name": "Hackers!",
"published": "2022-02-23T21:54:52+00:00",
"updated": "2022-02-23T21:55:16+00:00",
"url": "https://testv3.gnusocial.rocks/!hackers",
"endpoints": {
"sharedInbox": "https://testv3.gnusocial.rocks/inbox.json"
}
}

View File

@ -0,0 +1,40 @@
{
"type": "Note",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/object/note/1337",
"published": "2022-03-10T23:07:50+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"content": "<p>hello, world.</p>",
"mediaType": "text/html",
"source": {
"content": "hello, world.",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inConversation": "https://testv3.gnusocial.rocks/conversation/1337",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
}

View File

@ -0,0 +1,42 @@
{
"type": "Page",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/object/note/1338",
"published": "2022-03-01T22:44:29+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"name": "hello, world.",
"content": "<p>This is an interesting page.</p>",
"mediaType": "text/html",
"source": {
"content": "This is an interesting page.",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inConversation": "https://testv3.gnusocial.rocks/conversation/1338",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers",
"https://testv3.gnusocial.rocks/actor/21"
]
}

View File

@ -0,0 +1,42 @@
{
"type": "Person",
"streams": [],
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/actor/42",
"inbox": "https://testv3.gnusocial.rocks/actor/42/inbox.json",
"outbox": "https://testv3.gnusocial.rocks/actor/42/outbox.json",
"following": "https://testv3.gnusocial.rocks/actor/42/subscriptions",
"followers": "https://testv3.gnusocial.rocks/actor/42/subscribers",
"liked": "https://testv3.gnusocial.rocks/actor/42/favourites",
"preferredUsername": "diogo",
"publicKey": {
"id": "https://testv3.gnusocial.rocks/actor/42#public-key",
"owner": "https://testv3.gnusocial.rocks/actor/42",
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArBB+3ldwA2qC1hQTtIho\n9KYhvvMlPdydn8dA6OlyIQ3Jy57ADt2e144jDSY5RQ3esmzWm2QqsI8rAsZsAraO\nl2+855y7Fw35WH4GBc7PJ6MLAEvMk1YWeS/rttXaDzh2i4n/AXkMuxDjS1IBqw2w\nn0qTz2sdGcBJ+mop6AB9Qt2lseBc5IW040jSnfLEDDIaYgoc5m2yRsjGKItOh3BG\njGHDb6JB9FySToSMGIt0/tE5k06wfvAxtkxX5dfGeKtciBpC2MGT169iyMIOM8DN\nFhSl8mowtV1NJQ7nN692USrmNvSJjqe9ugPCDPPvwQ5A6A61Qrgpz5pav/o5Sz69\nzQIDAQAB\n-----END PUBLIC KEY-----\n"
},
"name": "Diogo Peralta Cordeiro",
"published": "2022-02-23T17:20:30+00:00",
"updated": "2022-02-25T02:12:48+00:00",
"url": "https://testv3.gnusocial.rocks/@diogo",
"endpoints": {
"sharedInbox": "https://testv3.gnusocial.rocks/inbox.json"
}
}

View File

@ -0,0 +1,41 @@
{
"type": "Note",
"@context": [
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"gs": "https://www.gnu.org/software/social/ns#"
},
{
"litepub": "http://litepub.social/ns#"
},
{
"chatMessage": "litepub:chatMessage"
},
{
"inConversation": {
"@id": "gs:inConversation",
"@type": "@id"
}
}
],
"id": "https://testv3.gnusocial.rocks/object/note/1339",
"published": "2022-03-01T21:00:16+00:00",
"attributedTo": "https://testv3.gnusocial.rocks/actor/42",
"content": "<p>yay ^^</p>",
"mediaType": "text/html",
"source": {
"content": "yay ^^",
"mediaType": "text/plain"
},
"attachment": [],
"tag": [],
"inReplyTo": "https://testv3.gnusocial.rocks/object/note/1338",
"inConversation": "https://testv3.gnusocial.rocks/conversation/1338",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://testv3.gnusocial.rocks/actor/42/subscribers"
]
}