Language support¶
The content and contentMap properties are defined in the ActivityStreams Vocabulary.
The support for natural language values is described in ActivityStreams.
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/urguwHlvajs",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/cd0jxq8pbiQ",
"published": "2024-03-06T17:58:25Z",
"content": "text"
}
}
sharkey
{
"id": "9qjo2k14pbvn003b",
"uri": "http://pasture_one_actor/actor/cd0jxq8pbiQ",
"url": "http://pasture_one_actor/actor/cd0jxq8pbiQ",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 87,
"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-03-06T17:58:25.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
}
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/urhUA9R-h8s",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/DmSJIyDjoO0",
"published": "2024-03-06T17:58:27Z",
"content": "text",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9qjo2lkopbvn003c",
"uri": "http://pasture_one_actor/actor/DmSJIyDjoO0",
"url": "http://pasture_one_actor/actor/DmSJIyDjoO0",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 88,
"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-03-06T17:58:27.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
}
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/lmu7ca3VMKo",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/nZ29yxf4QQw",
"published": "2024-03-06T17:58:29Z",
"content": "text",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "9qjo2n48pbvn003d",
"uri": "http://pasture_one_actor/actor/nZ29yxf4QQw",
"url": "http://pasture_one_actor/actor/nZ29yxf4QQw",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 89,
"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-03-06T17:58:29.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
}
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/CKqwb5MjyxQ",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/4q4RRoF2YTU",
"published": "2024-03-06T17:58:32Z",
"content": "text",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9qjo2pfkpbvn003e",
"uri": "http://pasture_one_actor/actor/4q4RRoF2YTU",
"url": "http://pasture_one_actor/actor/4q4RRoF2YTU",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 90,
"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-03-06T17:58: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": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": 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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/j0p8MfDxDSc",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/da-AX68Iasg",
"published": "2024-03-06T17:58:34Z",
"content": "text",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "9qjo2qz4pbvn003f",
"uri": "http://pasture_one_actor/actor/da-AX68Iasg",
"url": "http://pasture_one_actor/actor/da-AX68Iasg",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 91,
"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-03-06T17:58: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": [],
"tags": [],
"card": null,
"poll": null,
"application": null,
"language": null,
"pinned": false,
"reactions": [],
"emoji_reactions": [],
"bookmarked": false,
"quote": 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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/xRZACcrwBrQ",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/2JdO8oq6WBQ",
"published": "2024-03-06T17:58:36Z",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9qjo2siopbvn003g",
"uri": "http://pasture_one_actor/actor/2JdO8oq6WBQ",
"url": "http://pasture_one_actor/actor/2JdO8oq6WBQ",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 92,
"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": "",
"content_type": "text/x.misskeymarkdown",
"text": null,
"created_at": "2024-03-06T17:58: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
}
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/8M10N7GzJEo",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/ViXI5yY9unU",
"published": "2024-03-06T17:58:38Z",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "9qjo2u28pbvn003h",
"uri": "http://pasture_one_actor/actor/ViXI5yY9unU",
"url": "http://pasture_one_actor/actor/ViXI5yY9unU",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 93,
"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": "",
"content_type": "text/x.misskeymarkdown",
"text": null,
"created_at": "2024-03-06T17:58:38.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
}
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://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/rmAh3vqAapA",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/unt114iFpeg",
"published": "2024-03-06T17:58:40Z",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9qjo2vlspbvn003i",
"uri": "http://pasture_one_actor/actor/unt114iFpeg",
"url": "http://pasture_one_actor/actor/unt114iFpeg",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 94,
"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": "",
"content_type": "text/x.misskeymarkdown",
"text": null,
"created_at": "2024-03-06T17:58:40.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
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/GwDVZF2lbNA",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/9qjnvr5wi3ew0001"
],
"id": "http://pasture_one_actor/actor/-lMiDUgw3qI",
"published": "2024-03-06T17:58:42Z",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "9qjo2x5cpbvn003j",
"uri": "http://pasture_one_actor/actor/-lMiDUgw3qI",
"url": "http://pasture_one_actor/actor/-lMiDUgw3qI",
"account": {
"id": "9qjnxfoapbvn0002",
"username": "actor",
"acct": "actor@pasture_one_actor",
"fqn": "actor@pasture_one_actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-03-06T17:54:26.074Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 95,
"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": "",
"content_type": "text/x.misskeymarkdown",
"text": null,
"created_at": "2024-03-06T17:58:42.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
}