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/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/QuhOj3Z1Upw",
"published": "2024-09-14T18:35: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/kBdj-Kw4Ix0",
"published": "2024-09-14T18:35:33Z",
"content": "text"
}
}
sharkey
{
"id": "9y61xv60be3k003m",
"uri": "http://pasture-one-actor/actor/kBdj-Kw4Ix0",
"url": "http://pasture-one-actor/actor/kBdj-Kw4Ix0",
"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": 97,
"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:35: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": [],
"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/i4c2sS3_lUE",
"published": "2024-09-14T18:35: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/4DdNGR15CA8",
"published": "2024-09-14T18:35:34Z",
"content": "text",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9y61xvxsbe3k003n",
"uri": "http://pasture-one-actor/actor/4DdNGR15CA8",
"url": "http://pasture-one-actor/actor/4DdNGR15CA8",
"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": 98,
"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:35: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,
"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/ODghGcla_kQ",
"published": "2024-09-14T18:35: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/vf7_hKfrpkE",
"published": "2024-09-14T18:35:35Z",
"content": "text",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "9y61xwpkbe3k003o",
"uri": "http://pasture-one-actor/actor/vf7_hKfrpkE",
"url": "http://pasture-one-actor/actor/vf7_hKfrpkE",
"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": 99,
"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:35: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 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/PScH4H6WcpM",
"published": "2024-09-14T18:35: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/oi_WyYKLorA",
"published": "2024-09-14T18:35:36Z",
"content": "text",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9y61xxhcbe3k003p",
"uri": "http://pasture-one-actor/actor/oi_WyYKLorA",
"url": "http://pasture-one-actor/actor/oi_WyYKLorA",
"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": 100,
"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:35: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 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/Alq673OwNwg",
"published": "2024-09-14T18:35: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/_SZTFy65YtQ",
"published": "2024-09-14T18:35:37Z",
"content": "text",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "9y61xy94be3k003q",
"uri": "http://pasture-one-actor/actor/_SZTFy65YtQ",
"url": "http://pasture-one-actor/actor/_SZTFy65YtQ",
"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": 101,
"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:35: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 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/HowkgCOTF0k",
"published": "2024-09-14T18:35:38Z",
"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/flln9KiLpxk",
"published": "2024-09-14T18:35:38Z",
"contentMap": {
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9y61xz0wbe3k003r",
"uri": "http://pasture-one-actor/actor/flln9KiLpxk",
"url": "http://pasture-one-actor/actor/flln9KiLpxk",
"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": 102,
"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-09-14T18:35: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,
"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/YzNr37hB9Pk",
"published": "2024-09-14T18:35:38Z",
"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/XoBMmtMv6us",
"published": "2024-09-14T18:35:38Z",
"contentMap": {
"en": "English"
}
}
}
sharkey
{
"id": "9y61xz0wbe3k003s",
"uri": "http://pasture-one-actor/actor/XoBMmtMv6us",
"url": "http://pasture-one-actor/actor/XoBMmtMv6us",
"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": 103,
"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-09-14T18:35: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,
"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/Z1-OXU8pY5o",
"published": "2024-09-14T18:35:39Z",
"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/lr0VwRz7hyc",
"published": "2024-09-14T18:35:39Z",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
sharkey
{
"id": "9y61xzsobe3k003t",
"uri": "http://pasture-one-actor/actor/lr0VwRz7hyc",
"url": "http://pasture-one-actor/actor/lr0VwRz7hyc",
"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": 104,
"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-09-14T18:35:39.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/9y61plt8hrml0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/pRHvCPUKJlk",
"published": "2024-09-14T18:35:40Z",
"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/831P8vo21VA",
"published": "2024-09-14T18:35:40Z",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
sharkey
{
"id": "9y61y0kgbe3k003u",
"uri": "http://pasture-one-actor/actor/831P8vo21VA",
"url": "http://pasture-one-actor/actor/831P8vo21VA",
"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": 105,
"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-09-14T18:35: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,
"edited_at": null
}