Attribution Format¶
attributedTo
is defined here in the ActivityStreams Vocabulary. It allows us to tell, who authored / owns the object.
This test explores what is allowed in the field.
Examples¶
Example 1¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/ZhOGkTR5JGM",
"published": "2025-09-08T17:31:43Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/A1oMmqOgVnw",
"published": "2025-09-08T17:31:43Z",
"content": "single element",
"tag": [
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 136,
"user_id": 2,
"community_id": 1,
"title": "[Microblog] single element",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:31:44.171139Z",
"ap_id": "http://pasture-one-actor/object/A1oMmqOgVnw",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "single element"
}
Example 2¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/_Lk-q_d32Dg",
"published": "2025-09-08T17:31:44Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/WrzOKj6ldS8",
"published": "2025-09-08T17:31:44Z",
"content": "single element as list",
"tag": [
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 137,
"user_id": 2,
"community_id": 1,
"title": "single element as list",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:31:44.978476Z",
"ap_id": "http://pasture-one-actor/object/WrzOKj6ldS8",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "single element as list"
}
Example 3¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/HrlcwuqK3IQ",
"published": "2025-09-08T17:31:45Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/7TZQrS8HnTk",
"published": "2025-09-08T17:31:45Z",
"content": "two elements as list",
"tag": [
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 138,
"user_id": 2,
"community_id": 1,
"title": "two elements as list",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:31:45.723365Z",
"ap_id": "http://pasture-one-actor/object/7TZQrS8HnTk",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "two elements as list"
}
Example 4¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/_b3cQZp-6o0",
"published": "2025-09-08T17:31:46Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/nUQCEPxol4A",
"published": "2025-09-08T17:31:46Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
no result
Example 5¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/OHY8viBj4ck",
"published": "2025-09-08T17:31:58Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/cpKEiZ9g-Xg",
"published": "2025-09-08T17:31:58Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 139,
"user_id": 2,
"community_id": 1,
"title": "[Microblog] a dictionary",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:31:59.075116Z",
"ap_id": "http://pasture-one-actor/object/cpKEiZ9g-Xg",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "a dictionary"
}