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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/actor/U9ntdUjkvbU",
  "published": "2025-02-07T20:59:25Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/cTs98VhH_cc",
    "published": "2025-02-07T20:59:25Z",
    "content": "single element"
  }
}
misskey
{
  "id": "a3yt1rewpl2g0034",
  "createdAt": "2025-02-07T20:50:29.000Z",
  "userId": "a3ysz1b3pl2g0002",
  "user": {
    "id": "a3ysz1b3pl2g0002",
    "name": "Test Actor",
    "username": "actor",
    "host": "pasture-one-actor",
    "avatarUrl": "http://misskey/identicon/actor@pasture-one-actor",
    "avatarBlurhash": null,
    "avatarDecorations": [],
    "isBot": false,
    "isCat": false,
    "instance": {
      "name": null,
      "softwareName": null,
      "softwareVersion": null,
      "iconUrl": null,
      "faviconUrl": null,
      "themeColor": null
    },
    "emojis": {},
    "onlineStatus": "unknown"
  },
  "text": "single element",
  "cw": null,
  "visibility": "public",
  "localOnly": false,
  "reactionAcceptance": null,
  "renoteCount": 0,
  "repliesCount": 0,
  "reactionCount": 0,
  "reactions": {},
  "reactionEmojis": {},
  "emojis": {},
  "fileIds": [],
  "files": [],
  "replyId": null,
  "renoteId": null,
  "uri": "http://pasture-one-actor/actor/ytnjrgSo48Y",
  "clippedCount": 0
}
mitra
{
  "id": "0194e235-d4a5-ab73-9110-4bd7fde94ad7",
  "uri": "http://pasture-one-actor/actor/cTs98VhH_cc",
  "url": "http://pasture-one-actor/actor/cTs98VhH_cc",
  "created_at": "2025-02-07T20:59:25Z",
  "edited_at": null,
  "account": {
    "id": "0194e232-b067-124b-0799-4ade30ddd9a9",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-02-07T20:56:00.359685Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 87,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "single element",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "0194e231-607b-c1e5-c5c3-2ce84c557b8b",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/actor/c0Aq_R3i660",
  "published": "2025-02-07T20:59:26Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/X9seBm8VwCM",
    "published": "2025-02-07T20:59:26Z",
    "content": "single element as list"
  }
}

no result

mitra
{
  "id": "0194e235-da76-1b17-0ddc-e5aaed969bff",
  "uri": "http://pasture-one-actor/actor/X9seBm8VwCM",
  "url": "http://pasture-one-actor/actor/X9seBm8VwCM",
  "created_at": "2025-02-07T20:59:26Z",
  "edited_at": null,
  "account": {
    "id": "0194e232-b067-124b-0799-4ade30ddd9a9",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-02-07T20:56:00.359685Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 88,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "single element as list",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "0194e231-607b-c1e5-c5c3-2ce84c557b8b",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/actor/D2ZnaYeZy4s",
  "published": "2025-02-07T20:59:28Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/l_B9vgj3ggY",
    "published": "2025-02-07T20:59:28Z",
    "content": "two elements as list"
  }
}

no result

mitra
{
  "id": "0194e235-e060-bb0c-100f-d8eb20e2cb20",
  "uri": "http://pasture-one-actor/actor/l_B9vgj3ggY",
  "url": "http://pasture-one-actor/actor/l_B9vgj3ggY",
  "created_at": "2025-02-07T20:59:28Z",
  "edited_at": null,
  "account": {
    "id": "0194e232-b067-124b-0799-4ade30ddd9a9",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-02-07T20:56:00.359685Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 89,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "two elements as list",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "0194e231-607b-c1e5-c5c3-2ce84c557b8b",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/actor/kBWPhGSgBxY",
  "published": "2025-02-07T20:59:29Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/6kdD1oQ2T2U",
    "published": "2025-02-07T20:59:29Z",
    "content": "a dictionary"
  }
}

no result

mitra
{
  "id": "0194e235-e627-1ac1-a9cc-a2aed30a19ac",
  "uri": "http://pasture-one-actor/actor/6kdD1oQ2T2U",
  "url": "http://pasture-one-actor/actor/6kdD1oQ2T2U",
  "created_at": "2025-02-07T20:59:29Z",
  "edited_at": null,
  "account": {
    "id": "0194e232-b067-124b-0799-4ade30ddd9a9",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-02-07T20:56:00.359685Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 90,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "a dictionary",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "0194e231-607b-c1e5-c5c3-2ce84c557b8b",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}

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://mitra/users/admin"
  ],
  "id": "http://pasture-one-actor/actor/DbVfFDLo3ZM",
  "published": "2025-02-07T20:59:31Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mitra/users/admin"
    ],
    "id": "http://pasture-one-actor/actor/ZajM1IV5hXE",
    "published": "2025-02-07T20:59:31Z",
    "content": "a dictionary"
  }
}

no result

mitra
{
  "id": "0194e235-ec09-2aac-5ee7-b9634e6836a5",
  "uri": "http://pasture-one-actor/actor/ZajM1IV5hXE",
  "url": "http://pasture-one-actor/actor/ZajM1IV5hXE",
  "created_at": "2025-02-07T20:59:31Z",
  "edited_at": null,
  "account": {
    "id": "0194e232-b067-124b-0799-4ade30ddd9a9",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "actor_id": "http://pasture-one-actor/actor",
    "url": "http://pasture-one-actor/actor",
    "display_name": "Test Actor",
    "created_at": "2025-02-07T20:56:00.359685Z",
    "note": "",
    "avatar": "http://mitra/api/v1/accounts/identicon?input=http://pasture-one-actor/actor",
    "header": "http://mitra/api/v1/accounts/identicon",
    "locked": false,
    "mention_policy": "none",
    "bot": false,
    "identity_proofs": [],
    "payment_options": [],
    "fields": [],
    "emojis": [],
    "followers_count": 0,
    "following_count": 0,
    "subscribers_count": 0,
    "statuses_count": 91,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "a dictionary",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "visibility": "public",
  "sensitive": false,
  "spoiler_text": "",
  "pinned": false,
  "replies_count": 0,
  "favourites_count": 0,
  "reblogs_count": 0,
  "poll": null,
  "media_attachments": [],
  "mentions": [
    {
      "id": "0194e231-607b-c1e5-c5c3-2ce84c557b8b",
      "username": "admin",
      "acct": "admin",
      "url": "http://mitra/users/admin"
    }
  ],
  "tags": [],
  "emojis": [],
  "favourited": false,
  "reblogged": false,
  "bookmarked": false,
  "pleroma": {
    "emoji_reactions": [],
    "in_reply_to_account_acct": null,
    "parent_visible": true,
    "quote": null,
    "quote_visible": false
  },
  "ipfs_cid": null,
  "links": []
}