mirror of https://github.com/LemmyNet/lemmy.git
Add lotide activities to tests
parent
bd746e2e20
commit
be951a76c8
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"actor": "https://c.tide.tk/users/1",
|
||||
"object": {
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://c.tide.tk/comments/52",
|
||||
"type": "Note",
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": "test comment",
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"attributedTo": "https://c.tide.tk/users/1",
|
||||
"content": "<p>test comment</p>\n",
|
||||
"published": "2021-09-16T01:20:27.558063+00:00",
|
||||
"inReplyTo": "https://c.tide.tk/posts/51",
|
||||
"to": "https://c.tide.tk/users/1",
|
||||
"cc": [
|
||||
"https://www.w3.org/ns/activitystreams#Public",
|
||||
"https://c.tide.tk/communities/1"
|
||||
]
|
||||
},
|
||||
"to": "https://c.tide.tk/users/1",
|
||||
"cc": [
|
||||
"https://www.w3.org/ns/activitystreams#Public",
|
||||
"https://c.tide.tk/communities/1"
|
||||
],
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://c.tide.tk/comments/52/create",
|
||||
"type": "Create"
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"actor": "https://b.tide.tk/apub/users/1",
|
||||
"object": {
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://b.tide.tk/apub/posts/60",
|
||||
"type": "Page",
|
||||
"name": "test post from b",
|
||||
"summary": "test post from b",
|
||||
"to": "https://c.tide.tk/communities/1",
|
||||
"cc": "https://www.w3.org/ns/activitystreams#Public",
|
||||
"published": "2020-12-19T19:20:26.941381+00:00",
|
||||
"attributedTo": "https://b.tide.tk/apub/users/1",
|
||||
"url": "https://blog.twitter.com/engineering/en_us/a/2010/announcing-snowflake.html"
|
||||
},
|
||||
"to": "https://c.tide.tk/communities/1",
|
||||
"cc": "https://www.w3.org/ns/activitystreams#Public",
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "https://b.tide.tk/apub/posts/60/create",
|
||||
"type": "Create"
|
||||
}
|
|
@ -26,5 +26,8 @@ mod tests {
|
|||
file_to_json_object::<CreateOrUpdateComment>("assets/pleroma/activities/create_note.json");
|
||||
file_to_json_object::<CreateOrUpdateComment>("assets/smithereen/activities/create_note.json");
|
||||
file_to_json_object::<CreateOrUpdateComment>("assets/mastodon/activities/create_note.json");
|
||||
|
||||
file_to_json_object::<CreateOrUpdatePost>("assets/lotide/activities/create_page.json");
|
||||
file_to_json_object::<CreateOrUpdateComment>("assets/lotide/activities/create_note_reply.json");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue