Skip to content

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://sharkey/users/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/XXKCny2Rh2c",
  "published": "2024-12-04T18:57:23Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/enIANFhGmXA",
    "published": "2024-12-04T18:57:23Z",
    "content": "single element"
  }
}
sharkey
{
  "id": "a1dtdxyw2s8k002s",
  "uri": "http://pasture-one-actor/actor/enIANFhGmXA",
  "url": "http://pasture-one-actor/actor/enIANFhGmXA",
  "account": {
    "id": "a1dt8ksn2s8k0002",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-12-04T18:53:12.647Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 75,
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "uri": "http://pasture-one-actor/actor",
    "avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
    "header": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
    "emojis": [],
    "moved": null,
    "fields": [],
    "bot": false,
    "discoverable": true
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p><span>single element</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "single element",
  "created_at": "2024-12-04T18:57:23.000Z",
  "emojis": [],
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "reblogged": false,
  "favourited": false,
  "muted": false,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null,
  "edited_at": 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://sharkey/users/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/_FAeB5k65JU",
  "published": "2024-12-04T18:57:24Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/xmbOjeZFXoY",
    "published": "2024-12-04T18:57:24Z",
    "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://sharkey/users/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/lPPMK3hdz4I",
  "published": "2024-12-04T18:57:38Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/2h6IpokGCCM",
    "published": "2024-12-04T18:57:38Z",
    "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://sharkey/users/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/7LVy850pyPs",
  "published": "2024-12-04T18:57:51Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/yM1ezKdHz5g",
    "published": "2024-12-04T18:57:51Z",
    "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://sharkey/users/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/DdhlhZa2e7I",
  "published": "2024-12-04T18:58:05Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/51XVq5A33Mc",
    "published": "2024-12-04T18:58:05Z",
    "content": "a dictionary"
  }
}

no result