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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/activity/fnFxgNNYDu4",
"published": "2025-09-09T12:30:23Z",
"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/Ti9ksV-Yumg",
"published": "2025-09-09T12:30:23Z",
"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-09T12:30:23.624731Z",
"ap_id": "http://pasture-one-actor/object/Ti9ksV-Yumg",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/activity/SjcTsrFDDFw",
"published": "2025-09-09T12:30:24Z",
"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/K-OknDpNq_8",
"published": "2025-09-09T12:30:24Z",
"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-09T12:30:24.446624Z",
"ap_id": "http://pasture-one-actor/object/K-OknDpNq_8",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/activity/7jfl0KbEGz4",
"published": "2025-09-09T12:30:25Z",
"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/Iq08PXjUfKY",
"published": "2025-09-09T12:30:25Z",
"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-09T12:30:25.296257Z",
"ap_id": "http://pasture-one-actor/object/Iq08PXjUfKY",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/activity/N1K7gbWP2RE",
"published": "2025-09-09T12:30:25Z",
"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/sKrOxZ2Bmtg",
"published": "2025-09-09T12:30:25Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/activity/Kz-u9CiocS8",
"published": "2025-09-09T12:30:38Z",
"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/q2ZrX5YRYZk",
"published": "2025-09-09T12:30:38Z",
"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-09T12:30:38.801566Z",
"ap_id": "http://pasture-one-actor/object/q2ZrX5YRYZk",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "a dictionary"
}