Add lotide activities to tests
This commit is contained in:
parent
a91c0c8feb
commit
e2baed9a6d
3 changed files with 53 additions and 0 deletions
30
crates/apub/assets/lotide/activities/create_note_reply.json
Normal file
30
crates/apub/assets/lotide/activities/create_note_reply.json
Normal file
|
@ -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"
|
||||
}
|
20
crates/apub/assets/lotide/activities/create_page.json
Normal file
20
crates/apub/assets/lotide/activities/create_page.json
Normal file
|
@ -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 a new issue