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": [
    "http://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/gUv3h2yiUV8",
  "published": "2025-09-09T12:44:23Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/xfZSXKrMKhQ",
    "published": "2025-09-09T12:44:23Z",
    "content": "single element"
  }
}
pyfedi
{
  "id": 136,
  "user_id": 2,
  "community_id": 1,
  "title": "[Microblog] single element",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:30:23.624731Z",
  "ap_id": "http://pasture-one-actor/object/Ti9ksV-Yumg",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "single element"
}
sharkey
{
  "id": "acg3wxg8tn88004z",
  "uri": "http://pasture-one-actor/object/xfZSXKrMKhQ",
  "url": "http://pasture-one-actor/object/xfZSXKrMKhQ",
  "account": {
    "id": "acg3tlswtn880004",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "fqn": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2025-09-09T12:41:47.936Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 148,
    "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,
    "noindex": false,
    "group": null,
    "suspended": false,
    "limited": false
  },
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "reblog": null,
  "content": "<p>single element</p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "single element",
  "created_at": "2025-09-09T12:44:23.000Z",
  "edited_at": null,
  "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,
  "bookmarked": false,
  "quote": null,
  "reactions": []
}

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://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/lqOaWtjystE",
  "published": "2025-09-09T12:44:23Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/FFtxQYqtCXQ",
    "published": "2025-09-09T12:44:23Z",
    "content": "single element as list"
  }
}
pyfedi
{
  "id": 137,
  "user_id": 2,
  "community_id": 1,
  "title": "single element as list",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:30:24.446624Z",
  "ap_id": "http://pasture-one-actor/object/K-OknDpNq_8",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "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://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/5viHmWoWxU0",
  "published": "2025-09-09T12:44:36Z",
  "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/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/g1E9qTD3MM4",
    "published": "2025-09-09T12:44:36Z",
    "content": "two elements as list"
  }
}
pyfedi
{
  "id": 138,
  "user_id": 2,
  "community_id": 1,
  "title": "two elements as list",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:30:25.296257Z",
  "ap_id": "http://pasture-one-actor/object/Iq08PXjUfKY",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "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://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/W6khuwYG4Ho",
  "published": "2025-09-09T12:44:48Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/F-ToYTLseOQ",
    "published": "2025-09-09T12:44:48Z",
    "content": "a dictionary"
  }
}

no result

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://sharkey/users/acg3ru0zh3uf0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/0Lat_Tm1JWc",
  "published": "2025-09-09T12:45:00Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/acg3ru0zh3uf0003"
    ],
    "id": "http://pasture-one-actor/object/XqoAMsDtXzk",
    "published": "2025-09-09T12:45:00Z",
    "content": "a dictionary"
  }
}
pyfedi
{
  "id": 139,
  "user_id": 2,
  "community_id": 1,
  "title": "[Microblog] a dictionary",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:30:38.801566Z",
  "ap_id": "http://pasture-one-actor/object/q2ZrX5YRYZk",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "a dictionary"
}

no result