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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/mh-FAeSPlc8",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/uUqzUmO5nHw",
"published": "2024-02-28T16:40:13Z",
"content": "text @actor@pasture_one_actor",
"tag": {
"type": "Mention",
"name": "@actor@test_server",
"href": "http://pasture_one_actor/actor"
}
}
}
mastodon
{
"id": "112010095104371606",
"created_at": "2024-02-28T16:40:13.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/uUqzUmO5nHw",
"url": "http://pasture_one_actor/actor/uUqzUmO5nHw",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "text @actor@pasture_one_actor",
"filtered": [],
"reblog": null,
"account": {
"id": "112010087285689919",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-02-28T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 52,
"last_status_at": "2024-02-28",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "112010087285689919",
"username": "actor",
"url": "http://pasture_one_actor/actor",
"acct": "actor@pasture_one_actor"
}
],
"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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/U2GhqCDsgt4",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/9sgTDqyyRII",
"published": "2024-02-28T16:40:16Z",
"content": "unrelated text",
"tag": {
"type": "Mention",
"name": "something something",
"href": "http://pasture_one_actor/actor"
}
}
}
mastodon
{
"id": "112010095257705582",
"created_at": "2024-02-28T16:40:16.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/9sgTDqyyRII",
"url": "http://pasture_one_actor/actor/9sgTDqyyRII",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "unrelated text",
"filtered": [],
"reblog": null,
"account": {
"id": "112010087285689919",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-02-28T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 53,
"last_status_at": "2024-02-28",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "112010087285689919",
"username": "actor",
"url": "http://pasture_one_actor/actor",
"acct": "actor@pasture_one_actor"
}
],
"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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/foViDDD7tsU",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/DnOVw_lfeBQ",
"published": "2024-02-28T16:40:18Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@the_milkman@mastodon.social",
"href": "https://mastodon.social/users/the_milkman"
}
}
}
mastodon
{
"id": "112010095485655979",
"created_at": "2024-02-28T16:40:18.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/DnOVw_lfeBQ",
"url": "http://pasture_one_actor/actor/DnOVw_lfeBQ",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "text",
"filtered": [],
"reblog": null,
"account": {
"id": "112010087285689919",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-02-28T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 54,
"last_status_at": "2024-02-28",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [
{
"id": "112010095426467681",
"username": "the_milkman",
"url": "https://mastodon.social/@the_milkman",
"acct": "the_milkman@mastodon.social"
}
],
"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": [
"http://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/Ym0zu0UunXE",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/h_nBS_HSHTo",
"published": "2024-02-28T16:40:20Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@dummy@example",
"href": "https://dummy.example"
}
}
}
no result
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/qqpeDFNsgHk",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/_jAw5nR7eiE",
"published": "2024-02-28T16:40:23Z",
"content": "text",
"tag": {
"type": "Mention",
"name": "@test_actor@test_server",
"href": "http://test_actor"
}
}
}
no result
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/9Gq4tJE0YKg",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/ut5Xpmz1A3I",
"published": "2024-02-28T16:40:25Z",
"content": "text",
"tag": {
"type": "as:Mention",
"name": "yay",
"href": "http://pasture_one_actor/actor"
}
}
}
mastodon
{
"id": "112010095852471984",
"created_at": "2024-02-28T16:40:25.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/ut5Xpmz1A3I",
"url": "http://pasture_one_actor/actor/ut5Xpmz1A3I",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "text",
"filtered": [],
"reblog": null,
"account": {
"id": "112010087285689919",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-02-28T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 55,
"last_status_at": "2024-02-28",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": 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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/YgARmSpRsmA",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mastodon/users/hippo"
],
"id": "http://pasture_one_actor/actor/Vh1eisdP8ZM",
"published": "2024-02-28T16:40:27Z",
"content": "@actor text",
"tag": {
"name": "@actor",
"href": "http://pasture_one_actor/actor"
}
}
}
mastodon
{
"id": "112010096001368011",
"created_at": "2024-02-28T16:40:27.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/Vh1eisdP8ZM",
"url": "http://pasture_one_actor/actor/Vh1eisdP8ZM",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "@actor text",
"filtered": [],
"reblog": null,
"account": {
"id": "112010087285689919",
"username": "actor",
"acct": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-02-28T00:00:00.000Z",
"note": "",
"url": "http://pasture_one_actor/actor",
"uri": "http://pasture_one_actor/actor",
"avatar": "http://mastodon/avatars/original/missing.png",
"avatar_static": "http://mastodon/avatars/original/missing.png",
"header": "http://mastodon/headers/original/missing.png",
"header_static": "http://mastodon/headers/original/missing.png",
"followers_count": 0,
"following_count": 0,
"statuses_count": 56,
"last_status_at": "2024-02-28",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
Example 8¶
no result
no result