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/a1aeyjgdl0e10001"
  ],
  "id": "http://pasture-one-actor/actor/7DLEFkyC-2Q",
  "published": "2024-12-02T09:55:41Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1aeyjgdl0e10001"
    ],
    "id": "http://pasture-one-actor/actor/hWc-ugIb_l4",
    "published": "2024-12-02T09:55:41Z",
    "content": "single element"
  }
}
sharkey
{
  "id": "a1af5lxkwvq2002k",
  "uri": "http://pasture-one-actor/actor/hWc-ugIb_l4",
  "url": "http://pasture-one-actor/actor/hWc-ugIb_l4",
  "account": {
    "id": "a1af0deewvq20002",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-12-02T09:51:36.662Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 70,
    "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-02T09:55:41.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/a1aeyjgdl0e10001"
  ],
  "id": "http://pasture-one-actor/actor/FUY7uo-Ywbo",
  "published": "2024-12-02T09:55:41Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1aeyjgdl0e10001"
    ],
    "id": "http://pasture-one-actor/actor/WAWdYM4M7as",
    "published": "2024-12-02T09:55:41Z",
    "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/a1aeyjgdl0e10001"
  ],
  "id": "http://pasture-one-actor/actor/YSxgkcfrE9I",
  "published": "2024-12-02T09:55:55Z",
  "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/a1aeyjgdl0e10001"
    ],
    "id": "http://pasture-one-actor/actor/Z7ornC58Z9A",
    "published": "2024-12-02T09:55:55Z",
    "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/a1aeyjgdl0e10001"
  ],
  "id": "http://pasture-one-actor/actor/Y8tnE0RGst8",
  "published": "2024-12-02T09:56:09Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1aeyjgdl0e10001"
    ],
    "id": "http://pasture-one-actor/actor/s0mst-4Ofpc",
    "published": "2024-12-02T09:56:09Z",
    "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/a1aeyjgdl0e10001"
  ],
  "id": "http://pasture-one-actor/actor/gEi7KgGzYhI",
  "published": "2024-12-02T09:56:23Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1aeyjgdl0e10001"
    ],
    "id": "http://pasture-one-actor/actor/P9GWArZMC8E",
    "published": "2024-12-02T09:56:23Z",
    "content": "a dictionary"
  }
}

no result