Skip to content

Mentions

Mentions are discussed in this section of ActivityStreams.

The big difference on if mentions are parsed are currently a result of if the value in href can be resolved by the application being tested.

In the support table parsed means that the activity could be parsed, but the mention was discarded. A ❌ in the support table means that the entire message has failed to parse.

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/a2aeND2Wmi4",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/-_Wexk5PScs",
    "published": "2024-03-04T16:25:44Z",
    "content": "text @actor@pasture_one_actor",
    "tag": {
      "type": "Mention",
      "name": "@actor@test_server",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
sharkey
{
  "id": "9qgpvnswbg0k001g",
  "uri": "http://pasture_one_actor/actor/-_Wexk5PScs",
  "url": "http://pasture_one_actor/actor/-_Wexk5PScs",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 45,
    "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>text </span><span class=\"h-card\" translate=\"no\"><a href=\"http://pasture_one_actor/actor\" class=\"u-url mention\">@<span>actor</span></a></span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text @actor@pasture_one_actor",
  "created_at": "2024-03-04T16:25:44.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": [
    {
      "id": "9qgpt8hxbg0k0003",
      "username": "actor",
      "acct": "actor@pasture_one_actor",
      "url": "http://pasture_one_actor/actor"
    }
  ],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": 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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/6JiQMengk64",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/K9ARmDmZy1o",
    "published": "2024-03-04T16:25:46Z",
    "content": "unrelated text",
    "tag": {
      "type": "Mention",
      "name": "something something",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
sharkey
{
  "id": "9qgpvpcgbg0k001h",
  "uri": "http://pasture_one_actor/actor/K9ARmDmZy1o",
  "url": "http://pasture_one_actor/actor/K9ARmDmZy1o",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 46,
    "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>unrelated text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "unrelated text",
  "created_at": "2024-03-04T16:25:46.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": [
    {
      "id": "9qgpt8hxbg0k0003",
      "username": "actor",
      "acct": "actor@pasture_one_actor",
      "url": "http://pasture_one_actor/actor"
    }
  ],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/0j441Mz8LAg",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/bjDp2t5aVmY",
    "published": "2024-03-04T16:25:48Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@the_milkman@mastodon.social",
      "href": "https://mastodon.social/users/the_milkman"
    }
  }
}
sharkey
{
  "id": "9qgpvqw0bg0k001k",
  "uri": "http://pasture_one_actor/actor/bjDp2t5aVmY",
  "url": "http://pasture_one_actor/actor/bjDp2t5aVmY",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 47,
    "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>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-04T16:25:48.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": [
    {
      "id": "9qgpvs4abg0k001i",
      "username": "the_milkman",
      "acct": "the_milkman@mastodon.social",
      "url": "https://mastodon.social/@the_milkman"
    }
  ],
  "tags": [],
  "card": null,
  "poll": null,
  "application": null,
  "language": null,
  "pinned": false,
  "reactions": [],
  "emoji_reactions": [],
  "bookmarked": false,
  "quote": null
}

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/YYtOQ-Tr4sk",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/Ek2o7ClC_tM",
    "published": "2024-03-04T16:25:51Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@dummy@example",
      "href": "https://dummy.example"
    }
  }
}
sharkey
{
  "id": "9qgpvt7cbg0k001l",
  "uri": "http://pasture_one_actor/actor/Ek2o7ClC_tM",
  "url": "http://pasture_one_actor/actor/Ek2o7ClC_tM",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 48,
    "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>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-04T16:25:51.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
}

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/UpsQ7lQdPvk",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/g53eQ0_5Bts",
    "published": "2024-03-04T16:25:53Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@test_actor@test_server",
      "href": "http://test_actor"
    }
  }
}
sharkey
{
  "id": "9qgpvuqwbg0k001m",
  "uri": "http://pasture_one_actor/actor/g53eQ0_5Bts",
  "url": "http://pasture_one_actor/actor/g53eQ0_5Bts",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 49,
    "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>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-04T16:25:53.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
}

Example 6

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/Vldou-NFSyM",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/6wVpQ9eJHy4",
    "published": "2024-03-04T16:25:55Z",
    "content": "text",
    "tag": {
      "type": "as:Mention",
      "name": "yay",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
sharkey
{
  "id": "9qgpvwagbg0k001n",
  "uri": "http://pasture_one_actor/actor/6wVpQ9eJHy4",
  "url": "http://pasture_one_actor/actor/6wVpQ9eJHy4",
  "account": {
    "id": "9qgpt8hxbg0k0003",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-03-04T16:23:50.853Z",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 50,
    "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>text</span></p>",
  "content_type": "text/x.misskeymarkdown",
  "text": "text",
  "created_at": "2024-03-04T16:25:55.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
}

Example 7

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/9qgprq5jcxrh0001"
  ],
  "id": "http://pasture_one_actor/actor/1nb6Db0wFBY",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9qgprq5jcxrh0001"
    ],
    "id": "http://pasture_one_actor/actor/N8lM1m12xlQ",
    "published": "2024-03-04T16:25:57Z",
    "content": "@actor text",
    "tag": {
      "name": "@actor",
      "href": "http://pasture_one_actor/actor"
    }
  }
}

no result

Example 8

no result

no result