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://misskey/users/a3ysx3jhjhiz0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/_86tEYGExJQ",
"published": "2025-02-07T20:50:29Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a3ysx3jhjhiz0001"
],
"id": "http://pasture-one-actor/actor/ytnjrgSo48Y",
"published": "2025-02-07T20:50:29Z",
"content": "single element"
}
}
misskey
{
"id": "a3yt1rewpl2g0034",
"createdAt": "2025-02-07T20:50:29.000Z",
"userId": "a3ysz1b3pl2g0002",
"user": {
"id": "a3ysz1b3pl2g0002",
"name": "Test Actor",
"username": "actor",
"host": "pasture-one-actor",
"avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
"avatarBlurhash": null,
"avatarDecorations": [],
"isBot": false,
"isCat": false,
"instance": {
"name": null,
"softwareName": null,
"softwareVersion": null,
"iconUrl": null,
"faviconUrl": null,
"themeColor": null
},
"emojis": {},
"onlineStatus": "unknown"
},
"text": "single element",
"cw": null,
"visibility": "public",
"localOnly": false,
"reactionAcceptance": null,
"renoteCount": 0,
"repliesCount": 0,
"reactionCount": 0,
"reactions": {},
"reactionEmojis": {},
"emojis": {},
"fileIds": [],
"files": [],
"replyId": null,
"renoteId": null,
"uri": "http://pasture-one-actor/actor/ytnjrgSo48Y",
"clippedCount": 0
}
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://misskey/users/a3ysx3jhjhiz0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/zai3SwRJzX4",
"published": "2025-02-07T20:50:30Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a3ysx3jhjhiz0001"
],
"id": "http://pasture-one-actor/actor/e_ysep0lJgs",
"published": "2025-02-07T20:50:30Z",
"content": "single element as list"
}
}
no result
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://misskey/users/a3ysx3jhjhiz0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/ha12qQnIGZo",
"published": "2025-02-07T20:50:41Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a3ysx3jhjhiz0001"
],
"id": "http://pasture-one-actor/actor/ZPM6Wt3dvYc",
"published": "2025-02-07T20:50:41Z",
"content": "two elements as list"
}
}
no result
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://misskey/users/a3ysx3jhjhiz0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/9Y315YsQigQ",
"published": "2025-02-07T20:50:53Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a3ysx3jhjhiz0001"
],
"id": "http://pasture-one-actor/actor/p8jpz1BGZa8",
"published": "2025-02-07T20:50:53Z",
"content": "a dictionary"
}
}
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://misskey/users/a3ysx3jhjhiz0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/PHZbw0tmnY4",
"published": "2025-02-07T20:51:05Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a3ysx3jhjhiz0001"
],
"id": "http://pasture-one-actor/actor/VA0u8MOistQ",
"published": "2025-02-07T20:51:05Z",
"content": "a dictionary"
}
}
no result