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://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/20R3gmcN5OY",
"published": "2024-09-14T18:32:31Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/dQiVFP9qvPk",
"published": "2024-09-14T18:32:31Z",
"content": "text @actor@pasture-one-actor",
"tag": {
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture-one-actor/actor"
}
}
}
sharkey
{
"id": "9y61tyqgbe3k001l",
"uri": "http://pasture-one-actor/actor/dQiVFP9qvPk",
"url": "http://pasture-one-actor/actor/dQiVFP9qvPk",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 47,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text </span><span class=\"h-card\" translate=\"no\"><a href=\"http://pasture-one-actor/actor\" class=\"u-url mention\">@<span>actor</span></a></span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text @actor@pasture-one-actor",
"created_at": "2024-09-14T18:32:31.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [
{
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"url": "http://pasture-one-actor/actor"
}
],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/kMUxWnRFEBA",
"published": "2024-09-14T18:32:32Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/f1C2aw3JIq0",
"published": "2024-09-14T18:32:32Z",
"content": "unrelated text",
"tag": {
"type": "Mention",
"name": "something something",
"href": "http://pasture-one-actor/actor"
}
}
}
sharkey
{
"id": "9y61tzi8be3k001m",
"uri": "http://pasture-one-actor/actor/f1C2aw3JIq0",
"url": "http://pasture-one-actor/actor/f1C2aw3JIq0",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 48,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>unrelated text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "unrelated text",
"created_at": "2024-09-14T18:32:32.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [
{
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"url": "http://pasture-one-actor/actor"
}
],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/2xApGz48XPY",
"published": "2024-09-14T18:32:33Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/j2ZPZN27zlQ",
"published": "2024-09-14T18:32:33Z",
"content": "Missing Name @actor@pasture-one-actor",
"tag": {
"type": "Mention",
"href": "http://pasture-one-actor/actor"
}
}
}
sharkey
{
"id": "9y61u0a0be3k001n",
"uri": "http://pasture-one-actor/actor/j2ZPZN27zlQ",
"url": "http://pasture-one-actor/actor/j2ZPZN27zlQ",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 49,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>Missing Name </span><span class=\"h-card\" translate=\"no\"><a href=\"http://pasture-one-actor/actor\" class=\"u-url mention\">@<span>actor</span></a></span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "Missing Name @actor@pasture-one-actor",
"created_at": "2024-09-14T18:32:33.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [
{
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"url": "http://pasture-one-actor/actor"
}
],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/zu1_U3Z4hZI",
"published": "2024-09-14T18:32:34Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/n5zvDsQuiUs",
"published": "2024-09-14T18:32:34Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@the_milkman@mastodon.social",
"href": "https://mastodon.social/users/the_milkman"
}
}
}
sharkey
{
"id": "9y61u11sbe3k001q",
"uri": "http://pasture-one-actor/actor/n5zvDsQuiUs",
"url": "http://pasture-one-actor/actor/n5zvDsQuiUs",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 50,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2024-09-14T18:32:34.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [
{
"id": "9y61u1u8be3k001o",
"username": "the_milkman",
"acct": "the_milkman@mastodon.social",
"url": "https://mastodon.social/@the_milkman"
}
],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/0NgMWVaELHY",
"published": "2024-09-14T18:32:35Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/uM42wOSgDIs",
"published": "2024-09-14T18:32:35Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@dummy@example",
"href": "https://dummy.example"
}
}
}
sharkey
{
"id": "9y61u1tkbe3k001r",
"uri": "http://pasture-one-actor/actor/uM42wOSgDIs",
"url": "http://pasture-one-actor/actor/uM42wOSgDIs",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 51,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2024-09-14T18:32:35.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/AO3cCetTWpU",
"published": "2024-09-14T18:32:36Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/T6rySQu7iDo",
"published": "2024-09-14T18:32:36Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@test_actor@test_server",
"href": "http://test_actor"
}
}
}
sharkey
{
"id": "9y61u2lcbe3k001s",
"uri": "http://pasture-one-actor/actor/T6rySQu7iDo",
"url": "http://pasture-one-actor/actor/T6rySQu7iDo",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 52,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2024-09-14T18:32:36.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": null
}
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://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/sFKuzbqv128",
"published": "2024-09-14T18:32:37Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/sTIYPkWhknM",
"published": "2024-09-14T18:32:37Z",
"content": "text",
"tag": {
"type": "as:Mention",
"name": "yay",
"href": "http://pasture-one-actor/actor"
}
}
}
sharkey
{
"id": "9y61u3d4be3k001t",
"uri": "http://pasture-one-actor/actor/sTIYPkWhknM",
"url": "http://pasture-one-actor/actor/sTIYPkWhknM",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 53,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "text",
"created_at": "2024-09-14T18:32:37.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": 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": [
"http://sharkey/users/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/9fVGgTEebyE",
"published": "2024-09-14T18:32:37Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9y61plt8hrml0001"
],
"id": "http://pasture-one-actor/actor/xmLdR5CGAVk",
"published": "2024-09-14T18:32:37Z",
"content": "@actor text",
"tag": {
"name": "@actor",
"href": "http://pasture-one-actor/actor"
}
}
}
sharkey
{
"id": "9y61u3d4be3k001u",
"uri": "http://pasture-one-actor/actor/xmLdR5CGAVk",
"url": "http://pasture-one-actor/actor/xmLdR5CGAVk",
"account": {
"id": "9y61r5jsbe3k0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-09-14T18:30:19.864Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 54,
"note": "",
"url": "http://pasture-one-actor/actor",
"uri": "http://pasture-one-actor/actor",
"avatar": "https://dev.joinsharkey.org/static-assets/avatar.png",
"avatar_static": "https://dev.joinsharkey.org/static-assets/avatar.png",
"header": "https://dev.joinsharkey.org/static-assets/transparent.png",
"header_static": "https://dev.joinsharkey.org/static-assets/transparent.png",
"emojis": [],
"moved": null,
"fields": [],
"bot": false,
"discoverable": true
},
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"content": "<p><span>@actor</span><span> text</span></p>",
"content_type": "text/x.misskeymarkdown",
"text": "@actor text",
"created_at": "2024-09-14T18:32:37.000Z",
"emojis": [],
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"reblogged": false,
"favourited": false,
"muted": false,
"sensitive": false,
"spoiler_text": "",
"visibility": "public",
"media_attachments": [],
"mentions": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": null,
"edited_at": null
}