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://mbin/u/oscar",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/NApr13Iegug",
"published": "2024-10-29T14:27:30Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/YyuN4oGwP8M",
"published": "2024-10-29T14:27:30Z",
"cc": [],
"content": "single element"
}
}
mbin
{
"content": "<div class=\"content\">\n<p>single element</p>\n</div>",
"html": "<blockquote class=\"section post subject\" data-action=\"notifications:Notification@window->subject#notification\" data-controller=\"post subject mentions\" id=\"post-54\">\n<header>\n<a class=\"user-inline\" data-action=\"mouseover->mentions#user_popup mouseout->mentions#user_popup_out\" data-mentions-username-param=\"@actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\" title=\"@actor@pasture-one-actor\">\n actor <i aria-description=\"This user is new (active for less than 30 days)\" class=\"fa-solid fa-leaf new-user-icon\" title=\"This user is new (active for less than 30 days)\"></i>\n</a>\n<span>, </span>\n<a class=\"link-muted\" href=\"/m/random/p/54/single-element\"><time class=\"timeago\" datetime=\"2024-10-29T14:27:30+00:00\" title=\"2024-10-29T14:27:30+00:00\">now \n</time></a>\n</header>\n<figure>\n<a data-action=\"mouseover->mentions#user_popup mouseout->mentions#user_popup_out\" data-mentions-username-param=\"actor@pasture-one-actor\" href=\"/u/@actor@pasture-one-actor\">\n<div class=\"no-avatar\"></div>\n</a>\n</figure>\n<div class=\"content\">\n<p>single element</p>\n</div>\n<aside class=\"vote\">\n<form action=\"/pf/54?choice=0\" class=\"vote__up\" method=\"post\">\n<button aria-label=\"Favorite\" data-action=\"subject#vote\" title=\"Favorite\" type=\"submit\">\n<span data-subject-target=\"favCounter\">0</span> <span><i aria-hidden=\"true\" class=\"fa-solid fa-arrow-up\"></i></span>\n</button>\n</form>\n</aside>\n<footer>\n<menu>\n<li>\n<a class=\"stretched-link\" data-action=\"subject#getForm\" href=\"/m/random/p/54/single-element/reply\">Reply</a>\n</li>\n<li>\n<form action=\"/pb/54\" method=\"post\">\n<button class=\"boost-link stretched-link\" data-action=\"subject#favourite\" type=\"submit\">\n Boost <span class=\"hidden\" data-subject-target=\"upvoteCounter\">(0)</span>\n</button>\n</form>\n</li>\n<li class=\"dropdown\">\n<button class=\"stretched-link\" data-subject-target=\"more\">More</button>\n<ul class=\"dropdown__menu\" data-controller=\"clipboard\">\n<li>\n<a class=\"\" data-action=\"subject#getForm\" href=\"/pr/54\">\n Report\n </a>\n</li>\n<li>\n<a class=\"\" href=\"/m/random/p/54/single-element/votes?type=up\">\n Activity\n </a>\n</li>\n<li class=\"dropdown__separator\"></li>\n<li>\n<a href=\"http://pasture-one-actor/actor/YyuN4oGwP8M\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">\n Open original URL\n </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"http://pasture-one-actor/actor/YyuN4oGwP8M\" rel=\"nofollow noopener noreferrer\">\n Copy original URL\n </a>\n</li>\n<li>\n<a data-action=\"clipboard#copy\" href=\"/m/random/p/54/single-element\">\n Copy Mbin URL\n </a>\n</li>\n</ul>\n</li>\n<li data-subject-target=\"loader\" style=\"display:none\">\n<div class=\"loader\" role=\"status\">\n<span class=\"visually-hidden\">Loading...</span>\n</div>\n</li>\n</menu>\n<div class=\"js-container\" data-subject-target=\"container\">\n</div>\n</footer>\n</blockquote>"
}
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://mbin/u/oscar",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/6U5o7oyeWtw",
"published": "2024-10-29T14:27:30Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/5sV5i13pEHI",
"published": "2024-10-29T14:27:30Z",
"cc": [],
"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://mbin/u/oscar",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/AqAAZL42QGw",
"published": "2024-10-29T14:27:45Z",
"object": {
"type": "Note",
"attributedTo": [
"http://pasture-one-actor/actor",
"http://pasture-one-actor/second"
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/FyH4ffasGsg",
"published": "2024-10-29T14:27:45Z",
"cc": [],
"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://mbin/u/oscar",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/ZrrGAIjOfMo",
"published": "2024-10-29T14:27:59Z",
"object": {
"type": "Note",
"attributedTo": {
"type": "Person",
"id": "http://pasture-one-actor/actor"
},
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/0xjZ9D5vuc8",
"published": "2024-10-29T14:27:59Z",
"cc": [],
"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://mbin/u/oscar",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/lKBJp7C2L4M",
"published": "2024-10-29T14:28:13Z",
"object": {
"type": "Note",
"attributedTo": [
{
"type": "Person",
"id": "http://pasture-one-actor/actor"
}
],
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mbin/u/oscar"
],
"id": "http://pasture-one-actor/actor/zggKP0KGorg",
"published": "2024-10-29T14:28:13Z",
"cc": [],
"content": "a dictionary"
}
}
no result