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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/WjmZxbFNGr8",
  "published": "2025-09-14T08:56:07Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/DP82f-8TD78",
    "published": "2025-09-14T08:56:07Z",
    "content": "single element",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 136,
  "user_id": 2,
  "community_id": 1,
  "title": "[Microblog] single element",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-14T08:56:07.281492Z",
  "ap_id": "http://pasture-one-actor/object/DP82f-8TD78",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "single element"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/szZALtyhCPM",
  "published": "2025-09-14T08:56:07Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/LdVEqw6BcIc",
    "published": "2025-09-14T08:56:07Z",
    "content": "single element as list",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 137,
  "user_id": 2,
  "community_id": 1,
  "title": "single element as list",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-14T08:56:08.048102Z",
  "ap_id": "http://pasture-one-actor/object/LdVEqw6BcIc",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "single element as list"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/HBAJ0NNlL-M",
  "published": "2025-09-14T08:56:08Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/PEDzuZkLV3E",
    "published": "2025-09-14T08:56:08Z",
    "content": "two elements as list",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 138,
  "user_id": 2,
  "community_id": 1,
  "title": "two elements as list",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-14T08:56:08.828816Z",
  "ap_id": "http://pasture-one-actor/object/PEDzuZkLV3E",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "two elements as list"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/dGlOqK7XycE",
  "published": "2025-09-14T08:56:09Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/hZg9YkPkmUY",
    "published": "2025-09-14T08:56:09Z",
    "content": "a dictionary",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/QWnnJHaAHmQ",
  "published": "2025-09-14T08:56:21Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/tGJ3bewXT3M",
    "published": "2025-09-14T08:56:21Z",
    "content": "a dictionary",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 139,
  "user_id": 2,
  "community_id": 1,
  "title": "[Microblog] a dictionary",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-14T08:56:22.133496Z",
  "ap_id": "http://pasture-one-actor/object/tGJ3bewXT3M",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "a dictionary"
}