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://hollo/@john"
],
"id": "http://pasture-one-actor/actor/PBm741gZNEQ",
"published": "2024-11-03T15:02:08Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/C_6WQB4v3u0",
"published": "2024-11-03T15:02:08Z",
"content": "single element",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
cattle_grid
{
"field_context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"id": "http://pasture-one-actor/actor/5CqPVY8K8vs",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://cattle_grid/actor/0tVne6n_zxpVEnZifwQ-1Q"
],
"published": "2024-11-02T20:50:32Z",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"object": {
"id": "http://pasture-one-actor/actor/gU3pLyvwHbI",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://cattle_grid/actor/0tVne6n_zxpVEnZifwQ-1Q"
],
"published": "2024-11-02T20:50:32Z",
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"content": "single element"
}
}
hollo
{
"id": "0192f28c-3580-7cd1-93f3-8d669c6ac163",
"created_at": "2024-11-03T15:02:08.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/C_6WQB4v3u0",
"url": null,
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"pinned": false,
"content": "single element",
"reblog": null,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "0192f28a-d788-75f0-8926-0221de3ee90c",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2024-11-03T15:00:38.344Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": 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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/-k9z_kzJGfo",
"published": "2024-11-03T15:02:09Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/HbWE0kzfljs",
"published": "2024-11-03T15:02:09Z",
"content": "single element as list",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
no result
hollo
{
"id": "0192f28c-3968-72f2-8a76-76881e14356a",
"created_at": "2024-11-03T15:02:09.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/HbWE0kzfljs",
"url": null,
"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,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "0192f28a-d788-75f0-8926-0221de3ee90c",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2024-11-03T15:00:38.344Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": 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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/AjmC0vN3O2c",
"published": "2024-11-03T15:02:10Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/0b5qc7olgbg",
"published": "2024-11-03T15:02:10Z",
"content": "two elements as list",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
no result
hollo
{
"id": "0192f28c-3d50-77db-aa59-4de0fc15e3e0",
"created_at": "2024-11-03T15:02:10.000Z",
"in_reply_to_id": null,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"language": null,
"uri": "http://pasture-one-actor/actor/0b5qc7olgbg",
"url": null,
"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,
"quote_id": null,
"quote": null,
"application": null,
"account": {
"id": "0192f28a-d788-75f0-8926-0221de3ee90c",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"created_at": "2024-11-03T15:00:38.344Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://hollo/image/avatars/original/missing.png",
"avatar_static": "http://hollo/image/avatars/original/missing.png",
"header": "http://hollo/image/headers/original/missing.png",
"header_static": "http://hollo/image/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"moved": null,
"last_status_at": null,
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"emojis": [],
"emoji_reactions": [],
"poll": null,
"filtered": 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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/rKrNDC02FLs",
"published": "2024-11-03T15:02:10Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/TuvfM7T5neo",
"published": "2024-11-03T15:02:10Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
cattle_grid
{
"field_context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"id": "http://pasture-one-actor/actor/X2APIZLtNI0",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://cattle_grid/actor/0tVne6n_zxpVEnZifwQ-1Q"
],
"published": "2024-11-02T20:50:54Z",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"object": {
"id": "http://pasture-one-actor/actor/dsVBMiJRmjw",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://cattle_grid/actor/0tVne6n_zxpVEnZifwQ-1Q"
],
"published": "2024-11-02T20:50:54Z",
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"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://hollo/@john"
],
"id": "http://pasture-one-actor/actor/9cv9G0GGzKo",
"published": "2024-11-03T15:02:23Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/3XbSS5Ec2sY",
"published": "2024-11-03T15:02:23Z",
"content": "a dictionary",
"tag": [
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
no result
no result