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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/XF7CKJOCgQ0",
"published": "2024-10-30T16:25:16Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/NQ8Zv15HKYU",
"published": "2024-10-30T16:25:16Z",
"content": "single element"
}
}
misskey
{
"id": "9zznji740vqn002u",
"createdAt": "2024-10-30T16:25:16.000Z",
"userId": "9zzngtjx0vqn0002",
"user": {
"id": "9zzngtjx0vqn0002",
"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/NQ8Zv15HKYU",
"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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/_PjJ_lZfwBA",
"published": "2024-10-30T16:25:16Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/mEh_v2RKYqo",
"published": "2024-10-30T16:25:16Z",
"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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/xcc3kXuPh6I",
"published": "2024-10-30T16:25:28Z",
"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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/XspUKD14rj0",
"published": "2024-10-30T16:25:28Z",
"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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/Zn3SZJDKsLI",
"published": "2024-10-30T16:25:40Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/RFHrK1ERwU4",
"published": "2024-10-30T16:25:40Z",
"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/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/GagIIpjedlo",
"published": "2024-10-30T16:25:52Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://misskey/users/9zznfapmb08t0001"
],
"id": "http://pasture-one-actor/actor/N7yNxgerFYU",
"published": "2024-10-30T16:25:52Z",
"content": "a dictionary"
}
}
no result