Skip to content

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/wKKCwp05TxI",
  "published": "2025-09-08T17:36:24Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/5vrE2SYAmvE",
    "published": "2025-09-08T17:36:24Z",
    "content": "text",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 249,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-08T17:36:24.420626Z",
  "ap_id": "http://pasture-one-actor/object/5vrE2SYAmvE",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "text"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/GTfVERIbeOk",
  "published": "2025-09-08T17:36:25Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/UyUj2CuElKA",
    "published": "2025-09-08T17:36:25Z",
    "content": "text",
    "contentMap": {
      "de": "Deutsch"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 250,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-08T17:36:25.215118Z",
  "ap_id": "http://pasture-one-actor/object/UyUj2CuElKA",
  "local": false,
  "language_id": 3,
  "removed": false,
  "locked": false,
  "body": "text"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/IVyBPWFgZb8",
  "published": "2025-09-08T17:36:25Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/s8UgdAkNNSQ",
    "published": "2025-09-08T17:36:25Z",
    "content": "text",
    "contentMap": {
      "en": "English"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 251,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-08T17:36:26.038382Z",
  "ap_id": "http://pasture-one-actor/object/s8UgdAkNNSQ",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "text"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/DSprm_rCqh0",
  "published": "2025-09-08T17:36:26Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/EuigasYDBD4",
    "published": "2025-09-08T17:36:26Z",
    "content": "text",
    "contentMap": {
      "en": "English",
      "de": "Deutsch"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 252,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-08T17:36:26.846504Z",
  "ap_id": "http://pasture-one-actor/object/EuigasYDBD4",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "text"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/rNsghbmFvE0",
  "published": "2025-09-08T17:36:27Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/AadGoSYUTvI",
    "published": "2025-09-08T17:36:27Z",
    "content": "text",
    "contentMap": {
      "de": "Deutsch",
      "en": "English"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 253,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-08T17:36:27.648252Z",
  "ap_id": "http://pasture-one-actor/object/AadGoSYUTvI",
  "local": false,
  "language_id": 3,
  "removed": false,
  "locked": false,
  "body": "text"
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/-_73FRpx35Q",
  "published": "2025-09-08T17:36:28Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/iafj0atD-dg",
    "published": "2025-09-08T17:36:28Z",
    "contentMap": {
      "de": "Deutsch"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/ChHrRhQSOoM",
  "published": "2025-09-08T17:36:40Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/Q5ee5VcS4QQ",
    "published": "2025-09-08T17:36:40Z",
    "contentMap": {
      "en": "English"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/_ecPm9pxQHE",
  "published": "2025-09-08T17:36:53Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/CNO1rMRYRIk",
    "published": "2025-09-08T17:36:53Z",
    "contentMap": {
      "en": "English",
      "de": "Deutsch"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}

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://pyfedi.local/c/pie",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/activity/LNFD7pWsGWg",
  "published": "2025-09-08T17:37:06Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://pyfedi.local/c/pie"
    ],
    "id": "http://pasture-one-actor/object/useHENg_M3U",
    "published": "2025-09-08T17:37:06Z",
    "contentMap": {
      "de": "Deutsch",
      "en": "English"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}

no result