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://misskey/users/a1ds68tr8x0w0001"
  ],
  "id": "http://pasture-one-actor/actor/o-g6a8jbzEg",
  "published": "2024-12-04T18:28:55Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1ds68tr8x0w0001"
    ],
    "id": "http://pasture-one-actor/actor/hBD9CasEoD8",
    "published": "2024-12-04T18:28:55Z",
    "content": "single element"
  }
}
misskey
{
  "id": "a1dsdc2g77jl002q",
  "createdAt": "2024-12-04T18:28:55.000Z",
  "userId": "a1ds7sc977jl0002",
  "user": {
    "id": "a1ds7sc977jl0002",
    "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/hBD9CasEoD8",
  "clippedCount": 0
}

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://misskey/users/a1ds68tr8x0w0001"
  ],
  "id": "http://pasture-one-actor/actor/R9WPXJbgAbA",
  "published": "2024-12-04T18:28:55Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1ds68tr8x0w0001"
    ],
    "id": "http://pasture-one-actor/actor/qFkb82ynSiM",
    "published": "2024-12-04T18:28:55Z",
    "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://misskey/users/a1ds68tr8x0w0001"
  ],
  "id": "http://pasture-one-actor/actor/n5XMXVca5aE",
  "published": "2024-12-04T18:29:07Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      "http://pasture-one-actor/actor",
      "http://pasture-one-actor/second"
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1ds68tr8x0w0001"
    ],
    "id": "http://pasture-one-actor/actor/egAySt3FvAI",
    "published": "2024-12-04T18:29:07Z",
    "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://misskey/users/a1ds68tr8x0w0001"
  ],
  "id": "http://pasture-one-actor/actor/MBSdcPpmPww",
  "published": "2024-12-04T18:29:19Z",
  "object": {
    "type": "Note",
    "attributedTo": {
      "type": "Person",
      "id": "http://pasture-one-actor/actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1ds68tr8x0w0001"
    ],
    "id": "http://pasture-one-actor/actor/buTK-NCEnqs",
    "published": "2024-12-04T18:29:19Z",
    "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://misskey/users/a1ds68tr8x0w0001"
  ],
  "id": "http://pasture-one-actor/actor/xVZQlOWgQKE",
  "published": "2024-12-04T18:29:31Z",
  "object": {
    "type": "Note",
    "attributedTo": [
      {
        "type": "Person",
        "id": "http://pasture-one-actor/actor"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1ds68tr8x0w0001"
    ],
    "id": "http://pasture-one-actor/actor/tnj_LCBzUsY",
    "published": "2024-12-04T18:29:31Z",
    "content": "a dictionary"
  }
}

no result