mirror of https://github.com/LemmyNet/lemmy
GNU social compatibility (#2100)
* Use SourceCompat everywhere (better compat with other software) * Name field should not be mandatory in Group * also check page.cc field for community id * add gnu social tests * better to use option<sourcecompat> * update gnu social tests, marked vote as "unlisted"rate_limit_websocket_fail
parent
1e9f609cdb
commit
dfb0938738
@ -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://instance.gnusocial.test/activity/1339",
|
||||
"published": "2022-03-01T20:58:48+00:00",
|
||||
"actor": "https://instance.gnusocial.test/actor/42",
|
||||
"object": {
|
||||
"type": "Note",
|
||||
"id": "https://instance.gnusocial.test/object/note/1339",
|
||||
"published": "2022-03-01T21:00:16+00:00",
|
||||
"attributedTo": "https://instance.gnusocial.test/actor/42",
|
||||
"content": "<p>yay ^^</p>",
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": "yay ^^",
|
||||
"mediaType": "text/plain"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [],
|
||||
"inReplyTo": "https://instance.gnusocial.test/object/note/1338",
|
||||
"inConversation": "https://instance.gnusocial.test/conversation/1338",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/42/subscribers"
|
||||
]
|
||||
},
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/42/subscribers"
|
||||
]
|
||||
}
|
@ -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://instance.gnusocial.test/activity/1338",
|
||||
"published": "2022-03-17T23:30:26+00:00",
|
||||
"actor": "https://instance.gnusocial.test/actor/42",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/21"
|
||||
],
|
||||
"object": {
|
||||
"type": "Page",
|
||||
"id": "https://instance.gnusocial.test/object/note/1338",
|
||||
"published": "2022-03-17T23:30:26+00:00",
|
||||
"attributedTo": "https://instance.gnusocial.test/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/markdown"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [],
|
||||
"inConversation": "https://instance.gnusocial.test/conversation/1338",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/21"
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"type": "Like",
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams"
|
||||
],
|
||||
"id": "https://another_instance.gnusocial.test/activity/41362",
|
||||
"published": "2022-03-20T17:54:15+00:00",
|
||||
"actor": "https://another_instance.gnusocial.test/actor/43",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/42"
|
||||
],
|
||||
"object": "https://instance.gnusocial.test/object/note/1337"
|
||||
}
|
@ -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://instance.gnusocial.test/actor/21",
|
||||
"inbox": "https://instance.gnusocial.test/actor/21/inbox.json",
|
||||
"outbox": "https://instance.gnusocial.test/actor/21/outbox.json",
|
||||
"following": "https://instance.gnusocial.test/actor/21/subscriptions",
|
||||
"followers": "https://instance.gnusocial.test/actor/21/subscribers",
|
||||
"liked": "https://instance.gnusocial.test/actor/21/favourites",
|
||||
"preferredUsername": "hackers",
|
||||
"publicKey": {
|
||||
"id": "https://instance.gnusocial.test/actor/2#public-key",
|
||||
"owner": "https://instance.gnusocial.test/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://instance.gnusocial.test/!hackers",
|
||||
"endpoints": {
|
||||
"sharedInbox": "https://instance.gnusocial.test/inbox.json"
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"id": "https://instance.gnusocial.test/object/note/1339",
|
||||
"published": "2022-03-01T21:00:16+00:00",
|
||||
"attributedTo": "https://instance.gnusocial.test/actor/42",
|
||||
"content": "<p>yay ^^</p>",
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": "yay ^^",
|
||||
"mediaType": "text/plain"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [],
|
||||
"inReplyTo": "https://instance.gnusocial.test/object/note/1338",
|
||||
"inConversation": "https://instance.gnusocial.test/conversation/1338",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/42/subscribers"
|
||||
]
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
{
|
||||
"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://instance.gnusocial.test/object/note/1338",
|
||||
"published": "2022-03-17T23:30:26+00:00",
|
||||
"attributedTo": "https://instance.gnusocial.test/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/markdown"
|
||||
},
|
||||
"attachment": [],
|
||||
"tag": [],
|
||||
"inConversation": "https://instance.gnusocial.test/conversation/1338",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"cc": [
|
||||
"https://instance.gnusocial.test/actor/21"
|
||||
]
|
||||
}
|
@ -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://instance.gnusocial.test/actor/42",
|
||||
"inbox": "https://instance.gnusocial.test/actor/42/inbox.json",
|
||||
"outbox": "https://instance.gnusocial.test/actor/42/outbox.json",
|
||||
"following": "https://instance.gnusocial.test/actor/42/subscriptions",
|
||||
"followers": "https://instance.gnusocial.test/actor/42/subscribers",
|
||||
"liked": "https://instance.gnusocial.test/actor/42/favourites",
|
||||
"preferredUsername": "diogo",
|
||||
"publicKey": {
|
||||
"id": "https://instance.gnusocial.test/actor/42#public-key",
|
||||
"owner": "https://instance.gnusocial.test/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://instance.gnusocial.test/@diogo",
|
||||
"endpoints": {
|
||||
"sharedInbox": "https://instance.gnusocial.test/inbox.json"
|
||||
}
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"actor": "http://enterprise.lemmy.ml/u/lemmy_beta",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": "http://ds9.lemmy.ml/post/1",
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Dislike",
|
||||
"id": "http://enterprise.lemmy.ml/activities/dislike/64d40d40-a829-43a5-8247-1fb595b3ca1c"
|
||||
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"actor": "http://ds9.lemmy.ml/u/lemmy_alpha",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": "http://ds9.lemmy.ml/comment/1",
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Like",
|
||||
"id": "http://ds9.lemmy.ml/activities/like/fd61d070-7382-46a9-b2b7-6bb253732877"
|
||||
|
@ -1,22 +1,22 @@
|
||||
{
|
||||
"actor": "http://enterprise.lemmy.ml/u/lemmy_beta",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": {
|
||||
"actor": "http://enterprise.lemmy.ml/u/lemmy_beta",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": "http://ds9.lemmy.ml/post/1",
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Like",
|
||||
"id": "http://enterprise.lemmy.ml/activities/like/2227ab2c-79e2-4fca-a1d2-1d67dacf2457"
|
||||
},
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Undo",
|
||||
"id": "http://enterprise.lemmy.ml/activities/undo/6cc6fb71-39fe-49ea-9506-f0423b101e98"
|
||||
|
@ -1,22 +1,22 @@
|
||||
{
|
||||
"actor": "http://ds9.lemmy.ml/u/lemmy_alpha",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": {
|
||||
"actor": "http://ds9.lemmy.ml/u/lemmy_alpha",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
],
|
||||
"object": "http://ds9.lemmy.ml/comment/1",
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Like",
|
||||
"id": "http://ds9.lemmy.ml/activities/like/efcf7ae2-dfcc-4ff4-9ce4-6adf251ff004"
|
||||
},
|
||||
"cc": [
|
||||
"http://enterprise.lemmy.ml/c/main"
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"type": "Undo",
|
||||
"id": "http://ds9.lemmy.ml/activities/undo/3518565c-24a7-4d9e-8e0a-f7a2f45ac618"
|
||||
|
Loading…
Reference in New Issue