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.

Support Table Preview

tag Object Activity
basic mention; mention as list of dictionaries
[
  {
    “type”: “Mention”,
    “name”: “@actor@test_server”,
    “href”: “http://pasture-one-actor/actor”
  }
]
Object Activity
text @actor@pasture-one-actor; mention as dictionary
{
  “type”: “Mention”,
  “name”: “@actor@test_server”,
  “href”: “http://pasture-one-actor/actor”
}
Object Activity
unrelated text
{
  “type”: “Mention”,
  “name”: “something something”,
  “href”: “http://pasture-one-actor/actor”
}
Object Activity
Missing Name @actor@pasture-one-actor
{
  “type”: “Mention”,
  “href”: “http://pasture-one-actor/actor”
}
Object Activity
realworld url
{
  “type”: “Mention”,
  “name”: “@the_milkman@mastodon.social”,
  “href”: “https://mastodon.social/users/the_milkman”
}
Object Activity
unresolvable url – https
{
  “type”: “Mention”,
  “name”: “@dummy@example”,
  “href”: “https://dummy.example”
}
Object Activity
texunresolvable url – http
{
  “type”: “Mention”,
  “name”: “@test_actor@test_server”,
  “href”: “http://test_actor”
}
Object Activity
name is ‘yay’
{
  “type”: “as:Mention”,
  “name”: “yay”,
  “href”: “http://pasture-one-actor/actor”
}
Object Activity
@actor text
{
  “name”: “@actor”,
  “href”: “http://pasture-one-actor/actor”
}
Object Activity
duplicate mention, see https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/75
[
  {
    “type”: “Mention”,
    “name”: “@actor@test_server”,
    “href”: “http://pasture-one-actor/actor”
  },
  {
    “type”: “Mention”,
    “name”: “@actor@test_server”,
    “href”: “http://pasture-one-actor/actor”
  }
]
Object Activity

Objects

Object 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "basic mention; mention as list of dictionaries",
  "id": "http://actor.example/object/SYZ_1vWgt_I",
  "published": "2025-10-12T08:53:00Z",
  "tag": [
    {
      "href": "http://pasture-one-actor/actor",
      "name": "@actor@test_server",
      "type": "Mention"
    }
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text @actor@pasture-one-actor; mention as dictionary",
  "id": "http://actor.example/object/3YyZjF-WwOw",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://pasture-one-actor/actor",
    "name": "@actor@test_server",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "unrelated text",
  "id": "http://actor.example/object/fnucMJXirS8",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://pasture-one-actor/actor",
    "name": "something something",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "Missing Name @actor@pasture-one-actor",
  "id": "http://actor.example/object/n0yHGdNMCfg",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://pasture-one-actor/actor",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "realworld url",
  "id": "http://actor.example/object/rkydMNvVyR4",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "https://mastodon.social/users/the_milkman",
    "name": "@the_milkman@mastodon.social",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "unresolvable url -- https",
  "id": "http://actor.example/object/shXZOJx3MtA",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "https://dummy.example",
    "name": "@dummy@example",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "texunresolvable url -- http",
  "id": "http://actor.example/object/I4IIOtgnKM8",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://test_actor",
    "name": "@test_actor@test_server",
    "type": "Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "name is 'yay'",
  "id": "http://actor.example/object/CWNAwdDHQ_c",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://pasture-one-actor/actor",
    "name": "yay",
    "type": "as:Mention"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "@actor text",
  "id": "http://actor.example/object/9h_m6UXM_5g",
  "published": "2025-10-12T08:53:00Z",
  "tag": {
    "href": "http://pasture-one-actor/actor",
    "name": "@actor"
  },
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Object 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "duplicate mention, see https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/75",
  "id": "http://actor.example/object/_YvDvsB9gPQ",
  "published": "2025-10-12T08:53:00Z",
  "tag": [
    {
      "href": "http://pasture-one-actor/actor",
      "name": "@actor@test_server",
      "type": "Mention"
    },
    {
      "href": "http://pasture-one-actor/actor",
      "name": "@actor@test_server",
      "type": "Mention"
    }
  ],
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Note"
}

Activities

Activity 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/r9VrTkKn2CA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "basic mention; mention as list of dictionaries",
    "id": "http://actor.example/object/ofG-UQWJKv0",
    "published": "2025-10-12T08:53:00Z",
    "tag": [
      {
        "href": "http://pasture-one-actor/actor",
        "name": "@actor@test_server",
        "type": "Mention"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/HlIqBDQjOL0",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text @actor@pasture-one-actor; mention as dictionary",
    "id": "http://actor.example/object/rQkGLhH1fGc",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://pasture-one-actor/actor",
      "name": "@actor@test_server",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/VFVn-3EJCLc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "unrelated text",
    "id": "http://actor.example/object/sxaY9PqmPlg",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://pasture-one-actor/actor",
      "name": "something something",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/h51IsPfBsLg",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "Missing Name @actor@pasture-one-actor",
    "id": "http://actor.example/object/6joCoVklPy4",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://pasture-one-actor/actor",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/Qw47WQgvUfk",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "realworld url",
    "id": "http://actor.example/object/BpuPTAQIt_E",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "https://mastodon.social/users/the_milkman",
      "name": "@the_milkman@mastodon.social",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/ezCpoYAIPIk",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "unresolvable url -- https",
    "id": "http://actor.example/object/nKXEVNB_y4I",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "https://dummy.example",
      "name": "@dummy@example",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/LQkEfeEE1jc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "texunresolvable url -- http",
    "id": "http://actor.example/object/WBdXOuM8-lc",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://test_actor",
      "name": "@test_actor@test_server",
      "type": "Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/vwXmCtwb9Wc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "name is 'yay'",
    "id": "http://actor.example/object/HDSB_UHf3XA",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://pasture-one-actor/actor",
      "name": "yay",
      "type": "as:Mention"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/tBnO5kqQRQQ",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "@actor text",
    "id": "http://actor.example/object/gpmV2zemGYY",
    "published": "2025-10-12T08:53:00Z",
    "tag": {
      "href": "http://pasture-one-actor/actor",
      "name": "@actor"
    },
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}

Activity 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/activity/tZddvcTnAAs",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "duplicate mention, see https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/75",
    "id": "http://actor.example/object/1j1hMtdySCE",
    "published": "2025-10-12T08:53:00Z",
    "tag": [
      {
        "href": "http://pasture-one-actor/actor",
        "name": "@actor@test_server",
        "type": "Mention"
      },
      {
        "href": "http://pasture-one-actor/actor",
        "name": "@actor@test_server",
        "type": "Mention"
      }
    ],
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-10-12T08:53:00Z",
  "to": [
    "http://remote.example/",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "type": "Create"
}