1
0
Fork 0

Adding upstream version 0.0~git20250501.71edba4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 22:06:39 +02:00
parent c6ff472a6d
commit c8085bda34
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
87 changed files with 24009 additions and 0 deletions

View 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"
]
}
]
}

View 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"
}
}

View 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"
}
}

View 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
View file

@ -0,0 +1 @@
{}

View 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
}

View 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"
}

View file

@ -0,0 +1,6 @@
{
"-": "\n\t\t\n",
"en": "Ana got apples ⓐ",
"fr": "Aná a des pommes ⒜",
"ro": "Ana are mere"
}

View 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"
}

View 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"
}

View 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"
]
}

View 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"
}
]
}
}

View 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"
}
]
}

View file

@ -0,0 +1,4 @@
{
"@context":"https://www.w3.org/ns/activitystreams",
"url":"http://littr.git/api/accounts/system"
}

View file

@ -0,0 +1,7 @@
{
"@context":"https://www.w3.org/ns/activitystreams",
"url": [
"http://littr.git/api/accounts/system",
"http://littr.git/~system"
]
}

View 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"
}
]
}

View 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"
}
]
}

View 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"
}

View 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"
}
}