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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/YJkSm4JpMCo",
  "published": "2025-04-11T08:32:02Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/JXNFklJchjY",
    "published": "2025-04-11T08:32:02Z",
    "content": "basic mention; mention as list of dictionaries",
    "tag": [
      {
        "type": "Mention",
        "name": "@actor@test_server",
        "href": "http://pasture-one-actor/actor"
      }
    ]
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/_MgNxtMVChY",
  "published": "2025-04-11T08:32:13Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/gBjsV3Q6tjY",
    "published": "2025-04-11T08:32:13Z",
    "content": "text @actor@pasture-one-actor; mention as dictionary",
    "tag": {
      "type": "Mention",
      "name": "@actor@test_server",
      "href": "http://pasture-one-actor/actor"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/EOgbJkNiibg",
  "published": "2025-04-11T08:32:23Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/i9GigYZnpkg",
    "published": "2025-04-11T08:32:23Z",
    "content": "unrelated text",
    "tag": {
      "type": "Mention",
      "name": "something something",
      "href": "http://pasture-one-actor/actor"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/mVeh80by7aI",
  "published": "2025-04-11T08:32:34Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/guItCzp-ue4",
    "published": "2025-04-11T08:32:34Z",
    "content": "Missing Name @actor@pasture-one-actor",
    "tag": {
      "type": "Mention",
      "href": "http://pasture-one-actor/actor"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/d30q_R0IZHQ",
  "published": "2025-04-11T08:32:45Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/cfysbZTp_1E",
    "published": "2025-04-11T08:32:45Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@the_milkman@mastodon.social",
      "href": "https://mastodon.social/users/the_milkman"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/WO5jLaYHDbA",
  "published": "2025-04-11T08:32:56Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/iD4WkRy9qFo",
    "published": "2025-04-11T08:32:56Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@dummy@example",
      "href": "https://dummy.example"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/KccQ4qUnXMo",
  "published": "2025-04-11T08:33:06Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/J-9s9EvFNBA",
    "published": "2025-04-11T08:33:06Z",
    "content": "text",
    "tag": {
      "type": "Mention",
      "name": "@test_actor@test_server",
      "href": "http://test_actor"
    }
  }
}

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://misskey/users/a6g2x9ocfyaz0003",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/OSCxyfHDfOA",
  "published": "2025-04-11T08:33:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a6g2x9ocfyaz0003"
    ],
    "id": "http://pasture-one-actor/actor/itudjZFkezo",
    "published": "2025-04-11T08:33:17Z",
    "content": "text",
    "tag": {
      "type": "as:Mention",
      "name": "yay",
      "href": "http://pasture-one-actor/actor"
    }
  }
}