Adding upstream version 0.0~git20250501.71edba4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c6ff472a6d
commit
c8085bda34
87 changed files with 24009 additions and 0 deletions
22
tests/mocks/activity_create_multiple_objects.json
Normal file
22
tests/mocks/activity_create_multiple_objects.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"type": "Create",
|
||||
"actor": "https://littr.git/api/accounts/anonymous",
|
||||
"object": [
|
||||
{
|
||||
"type": "Note",
|
||||
"attributedTo": "https://littr.git/api/accounts/anonymous",
|
||||
"inReplyTo": "https://littr.git/api/accounts/system/outbox/7ca154ff",
|
||||
"content": "<p>Hello world</p>",
|
||||
"to": "https://www.w3.org/ns/activitystreams#Public"
|
||||
},
|
||||
{
|
||||
"type": "Article",
|
||||
"id": "http://www.test.example/article/1",
|
||||
"name": "This someday will grow up to be an article",
|
||||
"inReplyTo": [
|
||||
"http://www.test.example/object/1",
|
||||
"http://www.test.example/object/778"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
12
tests/mocks/activity_create_simple.json
Normal file
12
tests/mocks/activity_create_simple.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"type": "Create",
|
||||
"actor": "https://littr.git/api/accounts/anonymous",
|
||||
|
||||
"object": {
|
||||
"type": "Note",
|
||||
"attributedTo": "https://littr.git/api/accounts/anonymous",
|
||||
"inReplyTo": "https://littr.git/api/accounts/system/outbox/7ca154ff",
|
||||
"content": "<p>Hello world</p>",
|
||||
"to": "https://www.w3.org/ns/activitystreams#Public"
|
||||
}
|
||||
}
|
13
tests/mocks/activity_simple.json
Normal file
13
tests/mocks/activity_simple.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Activity",
|
||||
"summary": "Sally did something to a note",
|
||||
"actor": {
|
||||
"type": "Person",
|
||||
"name": "Sally"
|
||||
},
|
||||
"object": {
|
||||
"type": "Note",
|
||||
"name": "A Note"
|
||||
}
|
||||
}
|
10
tests/mocks/article_with_multiple_inreplyto.json
Normal file
10
tests/mocks/article_with_multiple_inreplyto.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Article",
|
||||
"id": "http://www.test.example/article/1",
|
||||
"name": "This someday will grow up to be an article",
|
||||
"inReplyTo": [
|
||||
"http://www.test.example/object/1",
|
||||
"http://www.test.example/object/778"
|
||||
]
|
||||
}
|
1
tests/mocks/empty.json
Normal file
1
tests/mocks/empty.json
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
11
tests/mocks/like_activity_with_iri_actor.json
Normal file
11
tests/mocks/like_activity_with_iri_actor.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"type": "Like",
|
||||
"actor": "https://littr.git/api/accounts/24d4b96f",
|
||||
"object": {
|
||||
"id": "https://littr.git/api/accounts/ana/liked/7ca154ff",
|
||||
"type": "Article"
|
||||
},
|
||||
"published": "2018-09-06T15:15:09Z",
|
||||
"to": null,
|
||||
"cc": null
|
||||
}
|
8
tests/mocks/link_simple.json
Normal file
8
tests/mocks/link_simple.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Link",
|
||||
"href": "http://example.org/abc",
|
||||
"hrefLang": "en",
|
||||
"mediaType": "text/html",
|
||||
"name": "An example link"
|
||||
}
|
6
tests/mocks/natural_language_values.json
Normal file
6
tests/mocks/natural_language_values.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"-": "\n\t\t\n",
|
||||
"en": "Ana got apples ⓐ",
|
||||
"fr": "Aná a des pommes ⒜",
|
||||
"ro": "Ana are mere"
|
||||
}
|
5
tests/mocks/object_no_type.json
Normal file
5
tests/mocks/object_no_type.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "http://www.test.example/object/1",
|
||||
"name": "A Simple, non-specific object without a type"
|
||||
}
|
6
tests/mocks/object_simple.json
Normal file
6
tests/mocks/object_simple.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Object",
|
||||
"id": "http://www.test.example/object/1",
|
||||
"name": "A Simple, non-specific object"
|
||||
}
|
18
tests/mocks/object_with_audience.json
Normal file
18
tests/mocks/object_with_audience.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Object",
|
||||
"id": "http://www.test.example/object/1",
|
||||
"to": [
|
||||
"https://www.w3.org/ns/activitystreams#Public"
|
||||
],
|
||||
"bto": [
|
||||
"http://example.com/sharedInbox"
|
||||
],
|
||||
"cc": [
|
||||
"https://example.com/actors/ana",
|
||||
"https://example.com/actors/bob"
|
||||
],
|
||||
"bcc": [
|
||||
"https://darkside.cookie/actors/darthvader"
|
||||
]
|
||||
}
|
17
tests/mocks/object_with_replies.json
Normal file
17
tests/mocks/object_with_replies.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Object",
|
||||
"id": "http://www.test.example/object/1",
|
||||
"replies": {
|
||||
"id": "http://www.test.example/object/1/replies",
|
||||
"type": "Collection",
|
||||
"totalItems": 1,
|
||||
"items": [
|
||||
{
|
||||
"id": "http://www.test.example/object/1/replies/2",
|
||||
"type": "Article",
|
||||
"name": "Example title"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
18
tests/mocks/object_with_tags.json
Normal file
18
tests/mocks/object_with_tags.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Object",
|
||||
"id": "http://www.test.example/object/1",
|
||||
"name": "A Simple, non-specific object",
|
||||
"tag": [
|
||||
{
|
||||
"name": "#my_tag",
|
||||
"id": "http://example.com/tag/my_tag",
|
||||
"type": "Mention"
|
||||
},
|
||||
{
|
||||
"name": "@ana",
|
||||
"type": "Mention",
|
||||
"id": "http://example.com/users/ana"
|
||||
}
|
||||
]
|
||||
}
|
4
tests/mocks/object_with_url.json
Normal file
4
tests/mocks/object_with_url.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"@context":"https://www.w3.org/ns/activitystreams",
|
||||
"url":"http://littr.git/api/accounts/system"
|
||||
}
|
7
tests/mocks/object_with_url_collection.json
Normal file
7
tests/mocks/object_with_url_collection.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context":"https://www.w3.org/ns/activitystreams",
|
||||
"url": [
|
||||
"http://littr.git/api/accounts/system",
|
||||
"http://littr.git/~system"
|
||||
]
|
||||
}
|
20
tests/mocks/ordered_collection.json
Normal file
20
tests/mocks/ordered_collection.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "http://example.com/outbox",
|
||||
"type": "OrderedCollection",
|
||||
"url": "http://example.com/outbox",
|
||||
"totalItems": 1,
|
||||
"orderedItems": [
|
||||
{
|
||||
"id": "http://example.com/outbox/53c6fb47",
|
||||
"type": "Article",
|
||||
"name": "Example title",
|
||||
"content": "Example content!",
|
||||
"url": "http://example.com/53c6fb47",
|
||||
"mediaType": "text/markdown",
|
||||
"published": "2018-07-05T16:46:44.00000Z",
|
||||
"generator": "http://example.com",
|
||||
"attributedTo": "http://example.com/accounts/alice"
|
||||
}
|
||||
]
|
||||
}
|
25
tests/mocks/ordered_collection_page.json
Normal file
25
tests/mocks/ordered_collection_page.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "http://example.com/outbox?page=2",
|
||||
"type": "OrderedCollectionPage",
|
||||
"url": "http://example.com/outbox?page=2",
|
||||
"totalItems": 1,
|
||||
"partOf": "http://example.com/outbox",
|
||||
"current": "http://example.com/outbox?page=2",
|
||||
"next": "http://example.com/outbox?page=3",
|
||||
"prev" : "http://example.com/outbox?page=1",
|
||||
"startIndex": 100,
|
||||
"orderedItems": [
|
||||
{
|
||||
"id": "http://example.com/outbox/53c6fb47",
|
||||
"type": "Article",
|
||||
"name": "Example title",
|
||||
"content": "Example content!",
|
||||
"url": "http://example.com/53c6fb47",
|
||||
"mediaType": "text/markdown",
|
||||
"published": "2018-07-05T16:46:44.00000Z",
|
||||
"generator": "http://example.com",
|
||||
"attributedTo": "http://example.com/accounts/alice"
|
||||
}
|
||||
]
|
||||
}
|
13
tests/mocks/person_with_outbox.json
Normal file
13
tests/mocks/person_with_outbox.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"id": "http://example.com/accounts/ana",
|
||||
"type": "Person",
|
||||
"name": "ana",
|
||||
"url": "http://example.com/accounts/ana",
|
||||
"outbox": {
|
||||
"id": "http://example.com/accounts/ana/outbox",
|
||||
"type": "OrderedCollection",
|
||||
"url": "http://example.com/outbox"
|
||||
},
|
||||
"preferredUsername": "Ana"
|
||||
}
|
13
tests/mocks/travel_simple.json
Normal file
13
tests/mocks/travel_simple.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": "https://www.w3.org/ns/activitystreams",
|
||||
"type": "Travel",
|
||||
"summary": "Sally went to work",
|
||||
"actor": {
|
||||
"type": "Person",
|
||||
"name": "Sally"
|
||||
},
|
||||
"target": {
|
||||
"type": "Place",
|
||||
"name": "Work"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue