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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/wBCuTSbExOg",
"published": "2025-09-08T17:30:00Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/LoqezB7aBFk",
"published": "2025-09-08T17:30:00Z",
"content": "basic mention; mention as list of dictionaries",
"tag": [
{
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 102,
"user_id": 2,
"community_id": 1,
"title": "basic mention; mention as list of dictionaries",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:00.968099Z",
"ap_id": "http://pasture-one-actor/object/LoqezB7aBFk",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "basic mention; mention as list of dictionaries"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/fsAezJ8Mpf0",
"published": "2025-09-08T17:30:01Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/1g9RHkcciSU",
"published": "2025-09-08T17:30:01Z",
"content": "text @actor@pasture-one-actor; mention as dictionary",
"tag": [
{
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 103,
"user_id": 2,
"community_id": 1,
"title": "text @actor@pasture-one-actor; mention as dictionary",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:01.782986Z",
"ap_id": "http://pasture-one-actor/object/1g9RHkcciSU",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "text @actor@pasture-one-actor; mention as dictionary"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/oy6H2j9SYwc",
"published": "2025-09-08T17:30:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/H8zh5FR0p78",
"published": "2025-09-08T17:30:02Z",
"content": "unrelated text",
"tag": [
{
"type": "Mention",
"name": "something something",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 104,
"user_id": 2,
"community_id": 1,
"title": "[Microblog] unrelated text",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:02.594789Z",
"ap_id": "http://pasture-one-actor/object/H8zh5FR0p78",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "unrelated text"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/iEgOhL96lys",
"published": "2025-09-08T17:30:03Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/GiPnVOXWXqA",
"published": "2025-09-08T17:30:03Z",
"content": "Missing Name @actor@pasture-one-actor",
"tag": [
{
"type": "Mention",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 105,
"user_id": 2,
"community_id": 1,
"title": "Missing Name @actor@pasture-one-actor",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:03.392495Z",
"ap_id": "http://pasture-one-actor/object/GiPnVOXWXqA",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "Missing Name @actor@pasture-one-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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/7qbWDnLZYH4",
"published": "2025-09-08T17:30:03Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/ifjP5ecWilQ",
"published": "2025-09-08T17:30:03Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@the_milkman@mastodon.social",
"href": "https://mastodon.social/users/the_milkman"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 106,
"user_id": 2,
"community_id": 1,
"title": "(content in post body)",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:04.139673Z",
"ap_id": "http://pasture-one-actor/object/ifjP5ecWilQ",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "text"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/To0YjnVSyX0",
"published": "2025-09-08T17:30:04Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/XyXp7kZdGpw",
"published": "2025-09-08T17:30:04Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@dummy@example",
"href": "https://dummy.example"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 107,
"user_id": 2,
"community_id": 1,
"title": "(content in post body)",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:04.976916Z",
"ap_id": "http://pasture-one-actor/object/XyXp7kZdGpw",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "text"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/CzRYoPdsh7Y",
"published": "2025-09-08T17:30:05Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/iFb9GOT9xL8",
"published": "2025-09-08T17:30:05Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@test_actor@test_server",
"href": "http://test_actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 108,
"user_id": 2,
"community_id": 1,
"title": "(content in post body)",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:05.756830Z",
"ap_id": "http://pasture-one-actor/object/iFb9GOT9xL8",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "text"
}
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://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/rbRY9GIcEh0",
"published": "2025-09-08T17:30:06Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/W_vZDhSgSE8",
"published": "2025-09-08T17:30:06Z",
"content": "text",
"tag": [
{
"type": "as:Mention",
"name": "yay",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 109,
"user_id": 2,
"community_id": 1,
"title": "(content in post body)",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:06.516732Z",
"ap_id": "http://pasture-one-actor/object/W_vZDhSgSE8",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "text"
}
Example 9¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/nilYTT9WFnE",
"published": "2025-09-08T17:30:07Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/4f7zuMf0DPw",
"published": "2025-09-08T17:30:07Z",
"content": "@actor text",
"tag": [
{
"name": "@actor",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
no result
Example 10¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://pyfedi.local/c/pie",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/lOWyBhUuaQ8",
"published": "2025-09-08T17:30:19Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://pyfedi.local/c/pie"
],
"id": "http://pasture-one-actor/object/e4z001AGvLY",
"published": "2025-09-08T17:30:19Z",
"content": "duplicate mention, see https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/75",
"tag": [
{
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://pyfedi.local/c/pie"
}
]
}
}
pyfedi
{
"id": 110,
"user_id": 2,
"community_id": 1,
"title": "duplicate mention, see https://codeberg",
"deleted": false,
"nsfw": false,
"sticky": false,
"published": "2025-09-08T17:30:19.818621Z",
"ap_id": "http://pasture-one-actor/object/e4z001AGvLY",
"local": false,
"language_id": 2,
"removed": false,
"locked": false,
"body": "duplicate mention, see https://codeberg.org/funfedidev/fediverse-pasture-inputs/issues/75"
}