Skip to content

Attachments

In the support table:

  • "✅" means at least one attachment,
  • "-" means parsed
  • "❌" means failed to parse

For more on image attachments see Image Description and Image Attachments.

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/C9bBFxt9Yw0",
  "published": "2024-10-29T14:33:53Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/ABVKTQJ62PA",
    "published": "2024-10-29T14:33:53Z",
    "cc": [],
    "content": "Link",
    "attachment": {
      "href": "https://funfedi.dev",
      "type": "Link"
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/LSsa6YHnxdY",
  "published": "2024-10-29T14:34:07Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/Hxc6vOBEiuk",
    "published": "2024-10-29T14:34:07Z",
    "cc": [],
    "content": "Payment Link, see FEP-0ea0",
    "attachment": {
      "type": "Link",
      "name": "Donate",
      "href": "payto://iban/DE75512108001245126199",
      "rel": "payment"
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/yUFJ9wW-1XY",
  "published": "2024-10-29T14:34:21Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/_wRueTgJfBc",
    "published": "2024-10-29T14:34:21Z",
    "cc": [],
    "content": "Text document",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "url": "http://pasture-one-actor/assets/sample.txt"
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/_38w0QcirVo",
  "published": "2024-10-29T14:34:36Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/7MFlQ2p7whk",
    "published": "2024-10-29T14:34:36Z",
    "cc": [],
    "content": "Text document, href instead of url",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "href": "http://pasture-one-actor/assets/sample.txt"
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/4M1neX_GF1c",
  "published": "2024-10-29T14:34:50Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/lSjD6KFv3vA",
    "published": "2024-10-29T14:34:50Z",
    "cc": [],
    "content": "attached note",
    "attachment": {
      "type": "Note",
      "attributedTo": "http://pasture-one-actor/actor",
      "name": "attached note",
      "content": "This is just a note",
      "published": "2024-03-06T07:23:56Z"
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/u1ySmQL67Mg",
  "published": "2024-10-29T14:35:04Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/mKjGYYU8_04",
    "published": "2024-10-29T14:35:04Z",
    "cc": [],
    "content": "Recipe",
    "attachment": {
      "@context": "https://schema.org/docs/jsonldcontext.jsonld",
      "@type": "Recipe",
      "name": "Peanut Butter and Jelly Sandwich",
      "recipeIngredient": [
        "Bread",
        "Peanut Butter",
        "Raspberry Jam",
        "Coffee (optional)"
      ],
      "recipeCategory": "Breakfast",
      "recipeInstructions": [
        {
          "@type": "HowToStep",
          "text": "Take a slice of bread and put it on a plate"
        },
        {
          "@type": "HowToStep",
          "text": "Spread peanut butter on the bread"
        },
        {
          "@type": "HowToStep",
          "text": "Spread raspberry jam on top of the peanut butter"
        },
        {
          "@type": "HowToStep",
          "text": "Eat your PB&J Sandwich and drink your coffee if you have it"
        },
        {
          "@type": "HowToStep",
          "text": "Check if you are still hungry, if yes a repeat step 1"
        }
      ]
    }
  }
}

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://mbin/u/oscar",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/-OjI0kGl8PQ",
  "published": "2024-10-29T14:35:19Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mbin/u/oscar"
    ],
    "id": "http://pasture-one-actor/actor/eGDwKALJQAg",
    "published": "2024-10-29T14:35:19Z",
    "cc": [],
    "content": "10 images",
    "attachment": [
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/101.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/102.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/103.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/104.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/105.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/106.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/107.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/108.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/109.png"
      },
      {
        "type": "Document",
        "url": "http://pasture-one-actor/images/1010.png"
      }
    ]
  }
}