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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/KYaF8ci6qoE",
"published": "2025-01-24T08:14:45Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/I1ziLr5upk8",
"published": "2025-01-24T08:14:45Z",
"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"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/VGGYgoPAj4Q",
"published": "2025-01-24T08:14:57Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/qVr-3SNHqH4",
"published": "2025-01-24T08:14:57Z",
"content": "unrelated text",
"tag": [
{
"type": "Mention",
"name": "something something",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/RG3W-PjI_W0",
"published": "2025-01-24T08:15:09Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/RU_i0KHpYvU",
"published": "2025-01-24T08:15:09Z",
"content": "Missing Name @actor@pasture-one-actor",
"tag": [
{
"type": "Mention",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/eoVeLl27Bpw",
"published": "2025-01-24T08:15:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/jJWtkFCI1Cc",
"published": "2025-01-24T08:15:21Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@the_milkman@mastodon.social",
"href": "https://mastodon.social/users/the_milkman"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/Gg_XMqvMAoY",
"published": "2025-01-24T08:15:33Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/D_75Jl2QB0Q",
"published": "2025-01-24T08:15:33Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@dummy@example",
"href": "https://dummy.example"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/cYamVpPEvV0",
"published": "2025-01-24T08:15:45Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/0M3LIQIwMHw",
"published": "2025-01-24T08:15:45Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@test_actor@test_server",
"href": "http://test_actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/5a3PuCLhspI",
"published": "2025-01-24T08:15:57Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/GW8NavWspQw",
"published": "2025-01-24T08:15:57Z",
"content": "text",
"tag": [
{
"type": "as:Mention",
"name": "yay",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/ujh_PH2aSsQ",
"published": "2025-01-24T08:16:09Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://hollo/@john"
],
"id": "http://pasture-one-actor/actor/Pn3sZqVD1b4",
"published": "2025-01-24T08:16:09Z",
"content": "@actor text",
"tag": [
{
"name": "@actor",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}