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://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/nrS8pJmW4qM",
"published": "2024-12-02T19:11:51Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/QvYgh54GQs8",
"published": "2024-12-02T19:11:51Z",
"content": "single element"
}
}
misskey
{
"id": "a1az0ue0pltg002i",
"createdAt": "2024-12-02T19:11:51.000Z",
"userId": "a1ayvetbpltg0002",
"user": {
"id": "a1ayvetbpltg0002",
"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/QvYgh54GQs8",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/WZiHGkWlNs8",
"published": "2024-12-02T19:11:51Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/ppvUMm7QJFQ",
"published": "2024-12-02T19:11:51Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/F13TdpAdbDI",
"published": "2024-12-02T19:12:03Z",
"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/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/pOK2NqbUYzE",
"published": "2024-12-02T19:12:03Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/UNcdH0s3G9M",
"published": "2024-12-02T19:12:15Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/GD00FAD-2lQ",
"published": "2024-12-02T19:12:15Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/HlYJ-5XgdXk",
"published": "2024-12-02T19:12:26Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/a1aytkg4okke0001"
],
"id": "http://pasture-one-actor/actor/EgVUL5byqA0",
"published": "2024-12-02T19:12:26Z",
"content": "a dictionary"
}
}
no result