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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/l2Y-pHJAWqE",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/ianGKPLQuAg",
"published": "2024-02-28T17:25:43Z",
"content": "text"
}
}
mitra
{
"id": "018df0c0-46fe-75c2-4ca8-79fc3a7d4d99",
"uri": "http://pasture_one_actor/actor/ianGKPLQuAg",
"url": null,
"created_at": "2024-02-28T17:25:43Z",
"edited_at": null,
"account": {
"id": "018df09f-1a24-4e01-0141-e371bf1c13a6",
"username": "actor",
"acct": "actor@pasture_one_actor",
"actor_id": "http://pasture_one_actor/actor",
"url": "http://pasture_one_actor/actor",
"display_name": "Test Actor",
"created_at": "2024-02-28T16:49:35.268860Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 99,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "text",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018df09e-1831-5367-8e8c-52e388bac223",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"token_id": null,
"token_tx_id": null,
"links": []
}
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/G93ARapon-8",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/JyNdGm3WXLs",
"published": "2024-02-28T17:26:03Z",
"content": "text",
"contentMap": {
"de": "Deutsch"
}
}
}
mitra
{
"id": "018df0c0-819c-1e45-314b-04c665f877cf",
"uri": "http://pasture_one_actor/actor/JyNdGm3WXLs",
"url": null,
"created_at": "2024-02-28T17:26:03Z",
"edited_at": null,
"account": {
"id": "018df09f-1a24-4e01-0141-e371bf1c13a6",
"username": "actor",
"acct": "actor@pasture_one_actor",
"actor_id": "http://pasture_one_actor/actor",
"url": "http://pasture_one_actor/actor",
"display_name": "Test Actor",
"created_at": "2024-02-28T16:49:35.268860Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 100,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "text",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018df09e-1831-5367-8e8c-52e388bac223",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"token_id": null,
"token_tx_id": null,
"links": []
}
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/h8cPAdFywpM",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/u2o6YVP1WHg",
"published": "2024-02-28T17:26:23Z",
"content": "text",
"contentMap": {
"en": "English"
}
}
}
mitra
{
"id": "018df0c0-cfba-9007-0bdf-ccedae204917",
"uri": "http://pasture_one_actor/actor/u2o6YVP1WHg",
"url": null,
"created_at": "2024-02-28T17:26:23Z",
"edited_at": null,
"account": {
"id": "018df09f-1a24-4e01-0141-e371bf1c13a6",
"username": "actor",
"acct": "actor@pasture_one_actor",
"actor_id": "http://pasture_one_actor/actor",
"url": "http://pasture_one_actor/actor",
"display_name": "Test Actor",
"created_at": "2024-02-28T16:49:35.268860Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 101,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "text",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018df09e-1831-5367-8e8c-52e388bac223",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"token_id": null,
"token_tx_id": null,
"links": []
}
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/Z0Hmj1VFP74",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/aaWQXKnas2c",
"published": "2024-02-28T17:26:43Z",
"content": "text",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
mitra
{
"id": "018df0c1-1dd9-3da4-89e8-806e1d1a3dc6",
"uri": "http://pasture_one_actor/actor/aaWQXKnas2c",
"url": null,
"created_at": "2024-02-28T17:26:43Z",
"edited_at": null,
"account": {
"id": "018df09f-1a24-4e01-0141-e371bf1c13a6",
"username": "actor",
"acct": "actor@pasture_one_actor",
"actor_id": "http://pasture_one_actor/actor",
"url": "http://pasture_one_actor/actor",
"display_name": "Test Actor",
"created_at": "2024-02-28T16:49:35.268860Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 102,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "text",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018df09e-1831-5367-8e8c-52e388bac223",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"token_id": null,
"token_tx_id": null,
"links": []
}
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/64jYe5wUsgs",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/cOZG9AhWBKc",
"published": "2024-02-28T17:27:03Z",
"content": "text",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
mitra
{
"id": "018df0c1-6bfd-92b7-b258-2ed5904baa4a",
"uri": "http://pasture_one_actor/actor/cOZG9AhWBKc",
"url": null,
"created_at": "2024-02-28T17:27:03Z",
"edited_at": null,
"account": {
"id": "018df09f-1a24-4e01-0141-e371bf1c13a6",
"username": "actor",
"acct": "actor@pasture_one_actor",
"actor_id": "http://pasture_one_actor/actor",
"url": "http://pasture_one_actor/actor",
"display_name": "Test Actor",
"created_at": "2024-02-28T16:49:35.268860Z",
"note": "",
"avatar": null,
"header": null,
"locked": false,
"mention_policy": "none",
"bot": false,
"identity_proofs": [],
"payment_options": [],
"fields": [],
"emojis": [],
"followers_count": 0,
"following_count": 0,
"subscribers_count": 0,
"statuses_count": 103,
"source": null,
"role": null,
"authentication_methods": null,
"client_config": null
},
"content": "text",
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"reblog": null,
"visibility": "public",
"sensitive": false,
"spoiler_text": "",
"pinned": false,
"replies_count": 0,
"favourites_count": 0,
"reblogs_count": 0,
"media_attachments": [],
"mentions": [
{
"id": "018df09e-1831-5367-8e8c-52e388bac223",
"username": "admin",
"acct": "admin",
"url": "http://mitra/users/admin"
}
],
"tags": [],
"emojis": [],
"favourited": false,
"reblogged": false,
"ipfs_cid": null,
"token_id": null,
"token_tx_id": null,
"links": []
}
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/AIs0m3buiHY",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/xOxItyGIG7E",
"published": "2024-02-28T17:27:23Z",
"contentMap": {
"de": "Deutsch"
}
}
}
no result
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/0rQ1V-bxSAw",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/pNTeiZC4HTs",
"published": "2024-02-28T17:27:43Z",
"contentMap": {
"en": "English"
}
}
}
no result
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/mUfDqjiu6rs",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/9ZUrWxq0c7I",
"published": "2024-02-28T17:28:03Z",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
no result
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://mitra/users/admin",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture_one_actor/actor/r05tRvFJcWc",
"object": {
"type": "Note",
"attributedTo": "http://pasture_one_actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://mitra/users/admin"
],
"id": "http://pasture_one_actor/actor/lxQaLl1PE3c",
"published": "2024-02-28T17:28:23Z",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
no result