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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/mgohs1njqnQ",
  "published": "2024-10-25T18:12:49Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/efiIjDH1N7U",
    "published": "2024-10-25T18:12:49Z",
    "content": "text @actor@pasture-one-actor",
    "tag": [
      {
        "type": "Mention",
        "name": "@actor@test_server",
        "href": "http://pasture-one-actor/actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E3378A4TGWEZJKCN03GD3",
  "created_at": "2024-10-25T18:12:49.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/efiIjDH1N7U",
  "url": "http://pasture-one-actor/actor/efiIjDH1N7U",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text @actor@pasture-one-actor",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 54,
    "last_status_at": "2024-10-25T18:12:49.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01JB2E00TZ3CJDTBS8WKXMESER",
      "username": "actor",
      "url": "http://pasture-one-actor/actor",
      "acct": "actor@pasture-one-actor"
    },
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": 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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/ACOFRWljuao",
  "published": "2024-10-25T18:12:49Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/YlEGh4JrvK4",
    "published": "2024-10-25T18:12:49Z",
    "content": "unrelated text",
    "tag": [
      {
        "type": "Mention",
        "name": "something something",
        "href": "http://pasture-one-actor/actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E33786K17X9V0XADHAR7Y",
  "created_at": "2024-10-25T18:12:49.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/YlEGh4JrvK4",
  "url": "http://pasture-one-actor/actor/YlEGh4JrvK4",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "unrelated text",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 55,
    "last_status_at": "2024-10-25T18:12:49.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01JB2E00TZ3CJDTBS8WKXMESER",
      "username": "actor",
      "url": "http://pasture-one-actor/actor",
      "acct": "actor@pasture-one-actor"
    },
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": 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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/j77oL19T6D8",
  "published": "2024-10-25T18:12:50Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/JGEtV8mmkXg",
    "published": "2024-10-25T18:12:50Z",
    "content": "Missing Name @actor@pasture-one-actor",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pasture-one-actor/actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E346GGQDN8XX34KK5V6D1",
  "created_at": "2024-10-25T18:12:50.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/JGEtV8mmkXg",
  "url": "http://pasture-one-actor/actor/JGEtV8mmkXg",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "Missing Name @actor@pasture-one-actor",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 56,
    "last_status_at": "2024-10-25T18:12:50.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01JB2E00TZ3CJDTBS8WKXMESER",
      "username": "actor",
      "url": "http://pasture-one-actor/actor",
      "acct": "actor@pasture-one-actor"
    },
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": 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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/tZelVb2rTX4",
  "published": "2024-10-25T18:12:51Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/G3mUjTpZKAA",
    "published": "2024-10-25T18:12:51Z",
    "content": "text",
    "tag": [
      {
        "type": "Mention",
        "name": "@the_milkman@mastodon.social",
        "href": "https://mastodon.social/users/the_milkman"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E355RE9GCHS9GHC8H0V1N",
  "created_at": "2024-10-25T18:12:51.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/G3mUjTpZKAA",
  "url": "http://pasture-one-actor/actor/G3mUjTpZKAA",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 57,
    "last_status_at": "2024-10-25T18:12:51.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01JB2E35MJF1XDS0A59TE0DNCJ",
      "username": "the_milkman",
      "url": "https://mastodon.social/@the_milkman",
      "acct": "the_milkman@mastodon.social"
    },
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": 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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/l0wOtmneqJM",
  "published": "2024-10-25T18:12:52Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/PQ4Q7psaJ_o",
    "published": "2024-10-25T18:12:52Z",
    "content": "text",
    "tag": [
      {
        "type": "Mention",
        "name": "@dummy@example",
        "href": "https://dummy.example"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E3650DY2EVAQ9X3KM0DFR",
  "created_at": "2024-10-25T18:12:52.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/PQ4Q7psaJ_o",
  "url": "http://pasture-one-actor/actor/PQ4Q7psaJ_o",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 58,
    "last_status_at": "2024-10-25T18:12:52.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": 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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/WhQdX6fwAHw",
  "published": "2024-10-25T18:12:52Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/UuJZe9PjG9o",
    "published": "2024-10-25T18:12:52Z",
    "content": "text",
    "tag": [
      {
        "type": "Mention",
        "name": "@test_actor@test_server",
        "href": "http://test_actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

no result

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": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/jWOtskyssAk",
  "published": "2024-10-25T18:13:04Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/snyisSDqTLo",
    "published": "2024-10-25T18:13:04Z",
    "content": "text",
    "tag": [
      {
        "type": "as:Mention",
        "name": "yay",
        "href": "http://pasture-one-actor/actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E3HW0XYN9YSXBBA2WP9VK",
  "created_at": "2024-10-25T18:13:04.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/snyisSDqTLo",
  "url": "http://pasture-one-actor/actor/snyisSDqTLo",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "text",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 59,
    "last_status_at": "2024-10-25T18:13:04.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}

Example 8

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "http://gotosocial/users/cookie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/6j-0DsrTVX4",
  "published": "2024-10-25T18:13:04Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://gotosocial/users/cookie"
    ],
    "id": "http://pasture-one-actor/actor/_6w04NudgjE",
    "published": "2024-10-25T18:13:04Z",
    "content": "@actor text",
    "tag": [
      {
        "name": "@actor",
        "href": "http://pasture-one-actor/actor"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}
gotosocial
{
  "id": "01JB2E3HW00QHSTN2BPC6XMK5Y",
  "created_at": "2024-10-25T18:13:04.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture-one-actor/actor/_6w04NudgjE",
  "url": "http://pasture-one-actor/actor/_6w04NudgjE",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "pinned": false,
  "content": "@actor text",
  "reblog": null,
  "account": {
    "id": "01JB2E00TZ3CJDTBS8WKXMESER",
    "username": "actor",
    "acct": "actor@pasture-one-actor",
    "display_name": "Test Actor",
    "locked": true,
    "discoverable": false,
    "bot": false,
    "created_at": "2024-10-25T18:11:08.266Z",
    "note": "",
    "url": "http://pasture-one-actor/actor",
    "avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon5.png",
    "header": "http://gotosocial/assets/default_header.png",
    "header_static": "http://gotosocial/assets/default_header.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 60,
    "last_status_at": "2024-10-25T18:13:04.000Z",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [
    {
      "id": "01KR3R9P7189Z7E30P0X6M9D0T",
      "username": "cookie",
      "url": "http://gotosocial/@cookie",
      "acct": "cookie"
    }
  ],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}