Skip to content

Content Warnings

Content Warnings are set using sensitive, then summary seems to be used as a spoiler text.

The last three examples are an attempt to add a content warning to an image.

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/TTzizf2uKog",
  "published": "2025-09-09T12:26:13Z",
  "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/WQSOZ7Y57jo",
    "published": "2025-09-09T12:26:13Z",
    "content": "text",
    "sensitive": true,
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 44,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": true,
  "sticky": false,
  "published": "2025-09-09T12:26:13.303870Z",
  "ap_id": "http://pasture-one-actor/object/WQSOZ7Y57jo",
  "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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/paowMjUAGvE",
  "published": "2025-09-09T12:26:13Z",
  "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/4KI068vDASc",
    "published": "2025-09-09T12:26:13Z",
    "content": "text",
    "summary": "summary",
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 45,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:26:14.079331Z",
  "ap_id": "http://pasture-one-actor/object/4KI068vDASc",
  "local": false,
  "language_id": 2,
  "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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/rnFvJQ5CnR4",
  "published": "2025-09-09T12:26:14Z",
  "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/PWm9o5dkP88",
    "published": "2025-09-09T12:26:14Z",
    "content": "text",
    "summary": "summary",
    "sensitive": true,
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 46,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": true,
  "sticky": false,
  "published": "2025-09-09T12:26:14.840039Z",
  "ap_id": "http://pasture-one-actor/object/PWm9o5dkP88",
  "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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/j11mtk-XL6w",
  "published": "2025-09-09T12:26:15Z",
  "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/qbfckicMn_g",
    "published": "2025-09-09T12:26:15Z",
    "content": "see image",
    "attachment": {
      "type": "Image",
      "sensitive": true,
      "url": "http://pasture-one-actor/images/w001.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 47,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:26:15.605959Z",
  "ap_id": "http://pasture-one-actor/object/qbfckicMn_g",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "see image",
  "url": "http://pasture-one-actor/images/w001.png",
  "thumbnail_url": "http://pasture-one-actor/images/w001.png",
  "small_thumbnail_url": "http://pasture-one-actor/images/w001.png"
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/vvB8NFaCvZ8",
  "published": "2025-09-09T12:26:16Z",
  "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/gH-5JmtGB3Y",
    "published": "2025-09-09T12:26:16Z",
    "content": "see image",
    "sensitive": true,
    "attachment": {
      "type": "Image",
      "sensitive": true,
      "url": "http://pasture-one-actor/images/w002.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 48,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": true,
  "sticky": false,
  "published": "2025-09-09T12:26:16.325598Z",
  "ap_id": "http://pasture-one-actor/object/gH-5JmtGB3Y",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "see image",
  "url": "http://pasture-one-actor/images/w002.png",
  "thumbnail_url": "http://pasture-one-actor/images/w002.png",
  "small_thumbnail_url": "http://pasture-one-actor/images/w002.png"
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/t_5r5Fo82DI",
  "published": "2025-09-09T12:26:16Z",
  "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/Y8Guxt4Sk60",
    "published": "2025-09-09T12:26:16Z",
    "content": "see image",
    "attachment": {
      "content": "content",
      "type": "Image",
      "sensitive": true,
      "url": "http://pasture-one-actor/images/w003.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 49,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:26:17.153748Z",
  "ap_id": "http://pasture-one-actor/object/Y8Guxt4Sk60",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "see image",
  "url": "http://pasture-one-actor/images/w003.png",
  "thumbnail_url": "http://pasture-one-actor/images/w003.png",
  "small_thumbnail_url": "http://pasture-one-actor/images/w003.png"
}

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": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://pyfedi.local/c/pie"
  ],
  "id": "http://pasture-one-actor/activity/nKfosn1K10E",
  "published": "2025-09-09T12:26:17Z",
  "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/J7HI_drEJTY",
    "published": "2025-09-09T12:26:17Z",
    "content": "see image",
    "attachment": {
      "type": "Image",
      "summary": "summary",
      "sensitive": true,
      "url": "http://pasture-one-actor/images/w004.png"
    },
    "tag": [
      {
        "type": "Mention",
        "href": "http://pyfedi.local/c/pie"
      }
    ]
  }
}
pyfedi
{
  "id": 50,
  "user_id": 2,
  "community_id": 1,
  "title": "(content in post body)",
  "deleted": false,
  "nsfw": false,
  "sticky": false,
  "published": "2025-09-09T12:26:17.973976Z",
  "ap_id": "http://pasture-one-actor/object/J7HI_drEJTY",
  "local": false,
  "language_id": 2,
  "removed": false,
  "locked": false,
  "body": "see image",
  "url": "http://pasture-one-actor/images/w004.png",
  "thumbnail_url": "http://pasture-one-actor/images/w004.png",
  "small_thumbnail_url": "http://pasture-one-actor/images/w004.png"
}