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.
Objects
Object 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": "http://pasture-one-actor/actor",
"content": "single element",
"id": "http://actor.example/o_VV3XHVz7A",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": [
"http://pasture-one-actor/actor"
],
"content": "single element as list",
"id": "http://actor.example/XCAeNb8mhaM",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"content": "two elements as list",
"id": "http://actor.example/cNwcuy5emxE",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": {
"id": "http://pasture-one-actor/actor",
"type": "Person"
},
"content": "a dictionary",
"id": "http://actor.example/J3-WHluqt3o",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Object 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"attributedTo": [
{
"id": "http://pasture-one-actor/actor",
"type": "Person"
}
],
"content": "a dictionary",
"id": "http://actor.example/hiNePwWu-bI",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public"
],
"type": "Note"
}
Activities
Activity 1
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/JPD0D2QArG8",
"object": {
"attributedTo": "http://pasture-one-actor/actor",
"content": "single element",
"id": "http://actor.example/4pEJX_ZpOfw",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 2
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/56LjPc6yff4",
"object": {
"attributedTo": [
"http://pasture-one-actor/actor"
],
"content": "single element as list",
"id": "http://actor.example/YMd5T1yKqtM",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 3
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/y3gbIkY5q9s",
"object": {
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"content": "two elements as list",
"id": "http://actor.example/qf_8vFvR-_A",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 4
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/yhcgXYJ5bAE",
"object": {
"attributedTo": {
"id": "http://pasture-one-actor/actor",
"type": "Person"
},
"content": "a dictionary",
"id": "http://actor.example/0DSfMFyAyeM",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}
Activity 5
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"actor": "http://actor.example",
"id": "http://actor.example/TKw2mv1OsbM",
"object": {
"attributedTo": [
{
"id": "http://pasture-one-actor/actor",
"type": "Person"
}
],
"content": "a dictionary",
"id": "http://actor.example/NPwKNWoJkWk",
"published": "2025-03-07T11:42:22Z",
"to": [
"as:Public",
"http://remote.example/"
],
"type": "Note"
},
"published": "2025-03-07T11:42:22Z",
"to": [
"http://remote.example/",
"as:Public"
],
"type": "Create"
}