Skip to content

Attachments

Examples

Example 1

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/YZkfDbsghag",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/LH-qtMGo_b4",
    "published": "2024-03-06T16:47:03Z",
    "content": "Link",
    "attachment": {
      "href": "https://funfedi.dev",
      "type": "Link"
    }
  }
}
```


```json title="mastodon"
{
  "id": "112049758146177518",
  "created_at": "2024-03-06T16:47:03.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/LH-qtMGo_b4",
  "url": "http://pasture_one_actor/actor/LH-qtMGo_b4",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Link",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 104,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 2

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/ffiXaj_PhpQ",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/VtwCM1HNL7g",
    "published": "2024-03-06T16:47:06Z",
    "content": "Payment Link, see FEP-0ea0",
    "attachment": {
      "type": "Link",
      "name": "Donate",
      "href": "payto://iban/DE75512108001245126199",
      "rel": "payment"
    }
  }
}
```


```json title="mastodon"
{
  "id": "112049758294629224",
  "created_at": "2024-03-06T16:47:06.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/VtwCM1HNL7g",
  "url": "http://pasture_one_actor/actor/VtwCM1HNL7g",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Payment Link, see FEP-0ea0",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 105,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 3

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/-Ya4ULuwkQA",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/dO37HFJmRJw",
    "published": "2024-03-06T16:47:08Z",
    "content": "Text document",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "href": "http://pasture_one_actor/assets/sample.txt"
    }
  }
}
```


```json title="mastodon"
{
  "id": "112049758443032831",
  "created_at": "2024-03-06T16:47:08.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/dO37HFJmRJw",
  "url": "http://pasture_one_actor/actor/dO37HFJmRJw",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Text document",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 106,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 4

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/GosfhIdp-Xs",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/5IhL7x2f1EQ",
    "published": "2024-03-06T16:47:10Z",
    "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"
    }
  }
}
```


```json title="mastodon"
{
  "id": "112049758608579335",
  "created_at": "2024-03-06T16:47:10.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/5IhL7x2f1EQ",
  "url": "http://pasture_one_actor/actor/5IhL7x2f1EQ",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "attached note",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 107,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 5

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/4c1m3NwWYBc",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/XAyZBsvB7Xo",
    "published": "2024-03-06T16:47:13Z",
    "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"
        }
      ]
    }
  }
}
```


```json title="mastodon"
{
  "id": "112049758758004946",
  "created_at": "2024-03-06T16:47:13.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/XAyZBsvB7Xo",
  "url": "http://pasture_one_actor/actor/XAyZBsvB7Xo",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "Recipe",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 108,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 6

```json title="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://mastodon/users/hippo"
  ],
  "id": "http://pasture_one_actor/actor/B3zWfzmDV08",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture_one_actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://mastodon/users/hippo"
    ],
    "id": "http://pasture_one_actor/actor/sd0dKb_HUUI",
    "published": "2024-03-06T16:47:15Z",
    "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"
      }
    ]
  }
}
```


```json title="mastodon"
{
  "id": "112049758919746620",
  "created_at": "2024-03-06T16:47:15.000Z",
  "in_reply_to_id": null,
  "in_reply_to_account_id": null,
  "sensitive": false,
  "spoiler_text": "",
  "visibility": "public",
  "language": null,
  "uri": "http://pasture_one_actor/actor/sd0dKb_HUUI",
  "url": "http://pasture_one_actor/actor/sd0dKb_HUUI",
  "replies_count": 0,
  "reblogs_count": 0,
  "favourites_count": 0,
  "edited_at": null,
  "favourited": false,
  "reblogged": false,
  "muted": false,
  "bookmarked": false,
  "content": "10 images",
  "filtered": [],
  "reblog": null,
  "account": {
    "id": "112049740239482109",
    "username": "actor",
    "acct": "actor@pasture_one_actor",
    "display_name": "Test Actor",
    "locked": false,
    "bot": false,
    "discoverable": false,
    "group": false,
    "created_at": "2024-03-06T00:00:00.000Z",
    "note": "",
    "url": "http://pasture_one_actor/actor",
    "uri": "http://pasture_one_actor/actor",
    "avatar": "http://mastodon/avatars/original/missing.png",
    "avatar_static": "http://mastodon/avatars/original/missing.png",
    "header": "http://mastodon/headers/original/missing.png",
    "header_static": "http://mastodon/headers/original/missing.png",
    "followers_count": 0,
    "following_count": 0,
    "statuses_count": 109,
    "last_status_at": "2024-03-06",
    "emojis": [],
    "fields": []
  },
  "media_attachments": [
    {
      "id": "112049758906226790",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/906/226/790/original/a161b7970d5ef97d.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/906/226/790/small/a161b7970d5ef97d.png",
      "remote_url": "http://pasture_one_actor/images/101.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U00WSzl.fQl.l.flfQflfQfQfQfQl.flfQfl"
    },
    {
      "id": "112049758911902431",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/911/902/431/original/766da9c345d98916.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/911/902/431/small/766da9c345d98916.png",
      "remote_url": "http://pasture_one_actor/images/102.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U02lf4qAfQqAqAf*fQf*fQfQfQfQqAf*fQf*"
    },
    {
      "id": "112049758914557411",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/914/557/411/original/c938dceffc114394.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/914/557/411/small/c938dceffc114394.png",
      "remote_url": "http://pasture_one_actor/images/103.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U5Q4U4}HfQ}H}HjufQjufQfQfQfQ}HjufQju"
    },
    {
      "id": "112049758917027632",
      "type": "image",
      "url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/917/027/632/original/17c06cd502bc682a.png",
      "preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/049/758/917/027/632/small/17c06cd502bc682a.png",
      "remote_url": "http://pasture_one_actor/images/104.png",
      "preview_remote_url": null,
      "text_url": null,
      "meta": {
        "original": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        },
        "small": {
          "width": 40,
          "height": 40,
          "size": "40x40",
          "aspect": 1.0
        }
      },
      "description": null,
      "blurhash": "U5O;6t~pfQ~p~pj[fQj[fQfQfQfQ~pj[fQj["
    }
  ],
  "mentions": [],
  "tags": [],
  "emojis": [],
  "card": null,
  "poll": null
}
```

Example 7

no result

no result