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://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/OqgQx-JhppY",
"published": "2024-12-20T15:19:09Z",
"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/1XliNGSMYiI",
"published": "2024-12-20T15:19:09Z",
"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": "01JFJADBE83YEF7MR220QJ62D9",
"created_at": "2024-12-20T15:19:09.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/1XliNGSMYiI",
"url": "http://pasture-one-actor/actor/1XliNGSMYiI",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 68,
"last_status_at": "2024-12-20T15:19:09.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"url": "http://pasture-one-actor/actor",
"acct": "actor@pasture-one-actor"
},
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/VGFjN616XYo",
"published": "2024-12-20T15:19:10Z",
"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/Skn5OJ3Zop4",
"published": "2024-12-20T15:19:10Z",
"content": "unrelated text",
"tag": [
{
"type": "Mention",
"name": "something something",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JFJADCDGH87MZNX2GPDFGRVR",
"created_at": "2024-12-20T15:19:10.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/Skn5OJ3Zop4",
"url": "http://pasture-one-actor/actor/Skn5OJ3Zop4",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 69,
"last_status_at": "2024-12-20T15:19:10.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"url": "http://pasture-one-actor/actor",
"acct": "actor@pasture-one-actor"
},
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/UMQ9545dwBw",
"published": "2024-12-20T15:19:10Z",
"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/hkN8AvZHPg4",
"published": "2024-12-20T15:19:10Z",
"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": "01JFJADCDGB9QZ8WK6F68GD087",
"created_at": "2024-12-20T15:19:10.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/hkN8AvZHPg4",
"url": "http://pasture-one-actor/actor/hkN8AvZHPg4",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 70,
"last_status_at": "2024-12-20T15:19:10.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"url": "http://pasture-one-actor/actor",
"acct": "actor@pasture-one-actor"
},
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/wCCigTwPwCM",
"published": "2024-12-20T15:19:11Z",
"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/2ImWSCu_3uA",
"published": "2024-12-20T15:19:11Z",
"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": "01JFJADDCRWJSPHX1WEPSDJHQ0",
"created_at": "2024-12-20T15:19:11.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/2ImWSCu_3uA",
"url": "http://pasture-one-actor/actor/2ImWSCu_3uA",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 71,
"last_status_at": "2024-12-20T15:19:11.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01JFJADE1EVWSFN0F4EVXEG0KA",
"username": "the_milkman",
"url": "https://mastodon.social/@the_milkman",
"acct": "the_milkman@mastodon.social"
},
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/-ZnjMnhN3T4",
"published": "2024-12-20T15:19:12Z",
"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/f26mW1HoM7U",
"published": "2024-12-20T15:19:12Z",
"content": "text",
"tag": [
{
"type": "Mention",
"name": "@dummy@example",
"href": "https://dummy.example"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JFJADEC0KK3YBPRWC3PSQ21V",
"created_at": "2024-12-20T15:19:12.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/f26mW1HoM7U",
"url": "http://pasture-one-actor/actor/f26mW1HoM7U",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 72,
"last_status_at": "2024-12-20T15:19:12.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/erNnRPnuRe0",
"published": "2024-12-20T15:19:12Z",
"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/DzUY1CLs550",
"published": "2024-12-20T15:19:12Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/t60sU_ECjUA",
"published": "2024-12-20T15:19:24Z",
"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/J4iTGmxgoOA",
"published": "2024-12-20T15:19:24Z",
"content": "text",
"tag": [
{
"type": "as:Mention",
"name": "yay",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JFJADT307W42XAH28XK3WA6B",
"created_at": "2024-12-20T15:19:24.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/J4iTGmxgoOA",
"url": "http://pasture-one-actor/actor/J4iTGmxgoOA",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 73,
"last_status_at": "2024-12-20T15:19:24.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://gotosocial/users/cookie"
],
"id": "http://pasture-one-actor/actor/gqcXYo8WYTM",
"published": "2024-12-20T15:19:24Z",
"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/OEcbPnw7b3M",
"published": "2024-12-20T15:19:24Z",
"content": "@actor text",
"tag": [
{
"name": "@actor",
"href": "http://pasture-one-actor/actor"
},
{
"type": "Mention",
"href": "http://gotosocial/users/cookie"
}
]
}
}
gotosocial
{
"id": "01JFJADT30ZP3JVPECGNR9740Z",
"created_at": "2024-12-20T15:19:24.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/OEcbPnw7b3M",
"url": "http://pasture-one-actor/actor/OEcbPnw7b3M",
"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": "01JFJAA18CP9BZJX9ZG0ZFP1B6",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": true,
"discoverable": false,
"bot": false,
"created_at": "2024-12-20T15:17:20.279Z",
"note": "",
"url": "http://pasture-one-actor/actor",
"avatar": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"avatar_static": "http://gotosocial/assets/default_avatars/GoToSocial_icon3.png",
"header": "http://gotosocial/assets/default_header.png",
"header_static": "http://gotosocial/assets/default_header.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 74,
"last_status_at": "2024-12-20T15:19:24.000Z",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "01SGRZ2Z14DEXHEBR8ETCSMZKJ",
"username": "cookie",
"url": "http://gotosocial/@cookie",
"acct": "cookie"
}
],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}