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://gotosocial/users/cookie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/-3bi2DxMOyU",
"published": "2025-02-15T11:50:46Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/uSZXdsdyhpk",
"published": "2025-02-15T11:50:46Z",
"content": "single element",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JM4Q4RFG41JB8P9AA3KY0S35",
"created_at": "2025-02-15T11:50:46.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/uSZXdsdyhpk",
"url": "http://pasture-one-actor/actor/uSZXdsdyhpk",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "single element",
"reblog": null,
"account": {
"id": "01JM4Q0JSSGZ5ZVQKH9ZP4S8D8",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2025-02-15T11:48:29.127Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 91,
"last_status_at": "2025-02-15T11:50:46.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01D7RQJ29VBSRM705B1DQFH2BK",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://gotosocial/users/cookie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/rcRIRUnQtl4",
"published": "2025-02-15T11:50:46Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/KDEEh_gh6Kk",
"published": "2025-02-15T11:50:46Z",
"content": "single element as list",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JM4Q4RFGAYAYZTYTDK2MWTPW",
"created_at": "2025-02-15T11:50:46.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/KDEEh_gh6Kk",
"url": "http://pasture-one-actor/actor/KDEEh_gh6Kk",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "single element as list",
"reblog": null,
"account": {
"id": "01JM4Q0JSSGZ5ZVQKH9ZP4S8D8",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2025-02-15T11:48:29.127Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 92,
"last_status_at": "2025-02-15T11:50:46.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01D7RQJ29VBSRM705B1DQFH2BK",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://gotosocial/users/cookie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/1w0bsmtgkyE",
"published": "2025-02-15T11:50:47Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/_ZB_ndE6wYo",
"published": "2025-02-15T11:50:47Z",
"content": "two elements as list",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JM4Q4SER00WHTF0WETHPJVD4",
"created_at": "2025-02-15T11:50:47.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/_ZB_ndE6wYo",
"url": "http://pasture-one-actor/actor/_ZB_ndE6wYo",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "two elements as list",
"reblog": null,
"account": {
"id": "01JM4Q0JSSGZ5ZVQKH9ZP4S8D8",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2025-02-15T11:48:29.127Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 93,
"last_status_at": "2025-02-15T11:50:47.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01D7RQJ29VBSRM705B1DQFH2BK",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://gotosocial/users/cookie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/6wIgqVNcD14",
"published": "2025-02-15T11:50:48Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/SFg5JMo_kwo",
"published": "2025-02-15T11:50:48Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JM4Q4TE0YQD475RJ9R4MPXVE",
"created_at": "2025-02-15T11:50:48.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/SFg5JMo_kwo",
"url": "http://pasture-one-actor/actor/SFg5JMo_kwo",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "a dictionary",
"reblog": null,
"account": {
"id": "01JM4Q0JSSGZ5ZVQKH9ZP4S8D8",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2025-02-15T11:48:29.127Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 94,
"last_status_at": "2025-02-15T11:50:48.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01D7RQJ29VBSRM705B1DQFH2BK",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://gotosocial/users/cookie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/VAt6Brx3AYg",
"published": "2025-02-15T11:50:48Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/19qfSTYzKow",
"published": "2025-02-15T11:50:48Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JM4Q4TE0SDPEN6QWMRYGX4HE",
"created_at": "2025-02-15T11:50:48.000Z",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/19qfSTYzKow",
"url": "http://pasture-one-actor/actor/19qfSTYzKow",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "a dictionary",
"reblog": null,
"account": {
"id": "01JM4Q0JSSGZ5ZVQKH9ZP4S8D8",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2025-02-15T11:48:29.127Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 95,
"last_status_at": "2025-02-15T11:50:48.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01D7RQJ29VBSRM705B1DQFH2BK",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}