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/1oBs4hjrFLU",
"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/qutVd0geR5s",
"published": "2024-03-06T18:47:15Z",
"content": "text"
}
}
mitra
{
"id": "018e1517-7c8e-7f4f-5d47-6d98ea82dc75",
"uri": "http://pasture_one_actor/actor/qutVd0geR5s",
"url": null,
"created_at": "2024-03-06T18:47:15Z",
"edited_at": null,
"account": {
"id": "018e14f5-f041-23ce-02af-d040b908c232",
"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-03-06T18:10:45.953735Z",
"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": "018e14f4-d873-ad2f-57db-aa3652520cfb",
"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/W5v69B0iEHE",
"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/vdL4wmnA3KY",
"published": "2024-03-06T18:47:35Z",
"content": "text",
"contentMap": {
"de": "Deutsch"
}
}
}
mitra
{
"id": "018e1517-caac-446e-8ff8-a6e3e47d57ab",
"uri": "http://pasture_one_actor/actor/vdL4wmnA3KY",
"url": null,
"created_at": "2024-03-06T18:47:35Z",
"edited_at": null,
"account": {
"id": "018e14f5-f041-23ce-02af-d040b908c232",
"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-03-06T18:10:45.953735Z",
"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": "018e14f4-d873-ad2f-57db-aa3652520cfb",
"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/MggCncPZIKA",
"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/H8KF_RVM4OA",
"published": "2024-03-06T18:47:55Z",
"content": "text",
"contentMap": {
"en": "English"
}
}
}
mitra
{
"id": "018e1518-18cd-88cf-9ed9-c7ce73803326",
"uri": "http://pasture_one_actor/actor/H8KF_RVM4OA",
"url": null,
"created_at": "2024-03-06T18:47:55Z",
"edited_at": null,
"account": {
"id": "018e14f5-f041-23ce-02af-d040b908c232",
"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-03-06T18:10:45.953735Z",
"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": "018e14f4-d873-ad2f-57db-aa3652520cfb",
"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/NjNei1ZYABg",
"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/iqbcv8Yjn40",
"published": "2024-03-06T18:48:15Z",
"content": "text",
"contentMap": {
"en": "English",
"de": "Deutsch"
}
}
}
mitra
{
"id": "018e1518-66f2-513f-4de9-94826cc82382",
"uri": "http://pasture_one_actor/actor/iqbcv8Yjn40",
"url": null,
"created_at": "2024-03-06T18:48:15Z",
"edited_at": null,
"account": {
"id": "018e14f5-f041-23ce-02af-d040b908c232",
"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-03-06T18:10:45.953735Z",
"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": "018e14f4-d873-ad2f-57db-aa3652520cfb",
"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/xB7BDvWueNE",
"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/jcJ95AyFAAI",
"published": "2024-03-06T18:48:36Z",
"content": "text",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
mitra
{
"id": "018e1518-b50c-1a5c-7942-0a794c474c5d",
"uri": "http://pasture_one_actor/actor/jcJ95AyFAAI",
"url": null,
"created_at": "2024-03-06T18:48:36Z",
"edited_at": null,
"account": {
"id": "018e14f5-f041-23ce-02af-d040b908c232",
"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-03-06T18:10:45.953735Z",
"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": 104,
"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": "018e14f4-d873-ad2f-57db-aa3652520cfb",
"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/PSstu8STPr8",
"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/slccw_Iu3vI",
"published": "2024-03-06T18:48:56Z",
"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/aFPqqLxt4Ao",
"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/YcWcjvJKRhY",
"published": "2024-03-06T18:49:16Z",
"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/78lJw764FIY",
"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/WUJDDnQ1yQI",
"published": "2024-03-06T18:49:36Z",
"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/rCVNrjsgHX4",
"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/uUsC0hSGk20",
"published": "2024-03-06T18:49:56Z",
"contentMap": {
"de": "Deutsch",
"en": "English"
}
}
}
no result