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": [
"http://sharkey/users/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/fRxcwewONWg",
"published": "2024-12-31T10:24:52Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/imGEBgtYXrE",
"published": "2024-12-31T10:24:52Z",
"content": "text"
}
}
sharkey
{
"id": "a2fvyucgxhmj005l",
"uri": "http://pasture-one-actor/actor/imGEBgtYXrE",
"url": "http://pasture-one-actor/actor/imGEBgtYXrE",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 165,
"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-12-31T10:24:52.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 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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/UHRSeoPL7Do",
"published": "2024-12-31T10:24:53Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/zNKVOTZ5A7k",
"published": "2024-12-31T10:24:53Z",
"content": "text",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "a2fvyv48xhmj005m",
"uri": "http://pasture-one-actor/actor/zNKVOTZ5A7k",
"url": "http://pasture-one-actor/actor/zNKVOTZ5A7k",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 166,
"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-12-31T10:24:53.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 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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/wJdktJP7j4A",
"published": "2024-12-31T10:24:53Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/zFHXFwMDxpU",
"published": "2024-12-31T10:24:53Z",
"content": "text",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "a2fvyv48xhmj005n",
"uri": "http://pasture-one-actor/actor/zFHXFwMDxpU",
"url": "http://pasture-one-actor/actor/zFHXFwMDxpU",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 167,
"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-12-31T10:24:53.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 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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/m6TlO9kFRmw",
"published": "2024-12-31T10:24:54Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/QpCM299KyGc",
"published": "2024-12-31T10:24:54Z",
"content": "text",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "a2fvyvw0xhmj005o",
"uri": "http://pasture-one-actor/actor/QpCM299KyGc",
"url": "http://pasture-one-actor/actor/QpCM299KyGc",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 168,
"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-12-31T10:24:54.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 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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/vytA_kF8Kb4",
"published": "2024-12-31T10:24:55Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/izoYwZ3i3xc",
"published": "2024-12-31T10:24:55Z",
"content": "text",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "a2fvywnsxhmj005p",
"uri": "http://pasture-one-actor/actor/izoYwZ3i3xc",
"url": "http://pasture-one-actor/actor/izoYwZ3i3xc",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 169,
"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-12-31T10:24:55.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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/VghTKJxQDmI",
"published": "2024-12-31T10:24:56Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/7wm0SlTTyvI",
"published": "2024-12-31T10:24:56Z",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "a2fvyxfkxhmj005q",
"uri": "http://pasture-one-actor/actor/7wm0SlTTyvI",
"url": "http://pasture-one-actor/actor/7wm0SlTTyvI",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 170,
"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-12-31T10:24:56.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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/-zxvOWM2kv0",
"published": "2024-12-31T10:24:56Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/IuYmloGjjpE",
"published": "2024-12-31T10:24:56Z",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "a2fvyxfkxhmj005r",
"uri": "http://pasture-one-actor/actor/IuYmloGjjpE",
"url": "http://pasture-one-actor/actor/IuYmloGjjpE",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 171,
"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-12-31T10:24:56.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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/VmN-CA5FVY4",
"published": "2024-12-31T10:24:57Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/WzFSO36Tf2c",
"published": "2024-12-31T10:24:57Z",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "a2fvyy7cxhmj005s",
"uri": "http://pasture-one-actor/actor/WzFSO36Tf2c",
"url": "http://pasture-one-actor/actor/WzFSO36Tf2c",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 172,
"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-12-31T10:24:57.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 9¶
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/a2fvn782j5y00001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/3yzryuSjJqE",
"published": "2024-12-31T10:24:58Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a2fvn782j5y00001"
],
"id": "http://pasture-one-actor/actor/Vo8YavZWO6E",
"published": "2024-12-31T10:24:58Z",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "a2fvyyz4xhmj005t",
"uri": "http://pasture-one-actor/actor/Vo8YavZWO6E",
"url": "http://pasture-one-actor/actor/Vo8YavZWO6E",
"account": {
"id": "a2fvos04xhmj0002",
"username": "actor",
"acct": "actor@pasture-one-actor",
"fqn": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"created_at": "2024-12-31T10:17:02.404Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 173,
"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-12-31T10:24:58.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
}