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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/V2wuGFoU6pw",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/K1lTUlCs9fE",
    "published": "2024-02-28T20:55:00Z",
    "content": "text @actor@pasture_one_actor",
    "tag": {
      "type": "Mention",
      "name": "@actor@test_server",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9uaoiolblu001f",
  "uri": "http://pasture_one_actor/actor/K1lTUlCs9fE",
  "url": "http://pasture_one_actor/actor/K1lTUlCs9fE",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:55:00.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": "9q9to0wnlblu0002",
      "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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/5ZTXEhq6gAw",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/_CJMgrWt9fg",
    "published": "2024-02-28T20:55:20Z",
    "content": "unrelated text",
    "tag": {
      "type": "Mention",
      "name": "something something",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9ub3y8lblu001g",
  "uri": "http://pasture_one_actor/actor/_CJMgrWt9fg",
  "url": "http://pasture_one_actor/actor/_CJMgrWt9fg",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:55:20.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": "9q9to0wnlblu0002",
      "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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/zfXt6ziU14k",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/OTnZ6xDpsqE",
    "published": "2024-02-28T20:55:41Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@the_milkman@mastodon.social",
      "href": "https://mastodon.social/users/the_milkman"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9ubk5klblu001j",
  "uri": "http://pasture_one_actor/actor/OTnZ6xDpsqE",
  "url": "http://pasture_one_actor/actor/OTnZ6xDpsqE",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:55:41.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": "9q9ublvslblu001h",
      "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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/s26TKAOY4Xs",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/xx3VUKGP2sw",
    "published": "2024-02-28T20:56:01Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@dummy@example",
      "href": "https://dummy.example"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9ubzl4lblu001k",
  "uri": "http://pasture_one_actor/actor/xx3VUKGP2sw",
  "url": "http://pasture_one_actor/actor/xx3VUKGP2sw",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:56:01.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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/uKnxtVeULY0",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/sOOMTv0W_PE",
    "published": "2024-02-28T20:56:21Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@test_actor@test_server",
      "href": "http://test_actor"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9ucf0olblu001l",
  "uri": "http://pasture_one_actor/actor/sOOMTv0W_PE",
  "url": "http://pasture_one_actor/actor/sOOMTv0W_PE",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:56:21.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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/QwKc-zbwe0c",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/C9xW0SJkN_s",
    "published": "2024-02-28T20:56:42Z",
    "content": "text",
    "tag": {
      "type": "as:Mention",
      "name": "yay",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
```


```json title="sharkey"
{
  "id": "9q9ucv80lblu001m",
  "uri": "http://pasture_one_actor/actor/C9xW0SJkN_s",
  "url": "http://pasture_one_actor/actor/C9xW0SJkN_s",
  "account": {
    "id": "9q9to0wnlblu0002",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "fqn": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "created_at": "2024-02-28T20:37:22.967Z",
    "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-02-28T20:56:42.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

```json title="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/9q9tmc4u9pr10001"
  ],
  "id": "http://pasture_one_actor/actor/esdxebmlkZc",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/9q9tmc4u9pr10001"
    ],
    "id": "http://pasture_one_actor/actor/88tXZ6CHaGI",
    "published": "2024-02-28T20:57:02Z",
    "content": "@actor text",
    "tag": {
      "name": "@actor",
      "href": "http://pasture_one_actor/actor"
    }
  }
}
```


no result

Example 8

no result

no result