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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/5tyKUfnPe0I",
  "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/tNEgH4f33qE",
    "published": "2024-03-06T18:50:16Z",
    "content": "Link",
    "attachment": {
      "href": "https://funfedi.dev",
      "type": "Link"
    }
  }
}
```


```json title="mitra"
{
  "id": "018e151a-3bad-9019-f738-1b277e3bb510",
  "uri": "http://pasture_one_actor/actor/tNEgH4f33qE",
  "url": null,
  "created_at": "2024-03-06T18:50:16Z",
  "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": 105,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "Link<p><a href=\"https://funfedi.dev\" rel=\"noopener\">https://funfedi.dev</a></p>",
  "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

```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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/xARB0twKTv8",
  "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/uCIN_g-wONg",
    "published": "2024-03-06T18:50:36Z",
    "content": "Payment Link, see FEP-0ea0",
    "attachment": {
      "type": "Link",
      "name": "Donate",
      "href": "payto://iban/DE75512108001245126199",
      "rel": "payment"
    }
  }
}
```


```json title="mitra"
{
  "id": "018e151a-7645-f4e6-0176-cf94c1488a9c",
  "uri": "http://pasture_one_actor/actor/uCIN_g-wONg",
  "url": null,
  "created_at": "2024-03-06T18:50: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": 106,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "Payment Link, see FEP-0ea0<p><a href=\"payto://iban/DE75512108001245126199\" rel=\"noopener\">payto://iban/DE75512108001245126199</a></p>",
  "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

```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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/-RAIhRZFTdc",
  "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/mKSRQuQLw6A",
    "published": "2024-03-06T18:50:56Z",
    "content": "Text document",
    "attachment": {
      "type": "Document",
      "name": "text document",
      "href": "http://pasture_one_actor/assets/sample.txt"
    }
  }
}
```


no result

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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/X0Wm24k3PR8",
  "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/_ZLQRSt1nqA",
    "published": "2024-03-06T18:51:16Z",
    "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="mitra"
{
  "id": "018e151b-2610-1763-ad1a-94ed89904f6c",
  "uri": "http://pasture_one_actor/actor/_ZLQRSt1nqA",
  "url": null,
  "created_at": "2024-03-06T18:51:16Z",
  "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": 107,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "attached note",
  "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

```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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/8AxAGl7BoHs",
  "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/LQ8yXA9zt74",
    "published": "2024-03-06T18:51:36Z",
    "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="mitra"
{
  "id": "018e151b-742a-a093-ee68-f8e7be93d8e0",
  "uri": "http://pasture_one_actor/actor/LQ8yXA9zt74",
  "url": null,
  "created_at": "2024-03-06T18:51: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": 108,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "Recipe",
  "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

```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": [
    "http://mitra/users/admin",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture_one_actor/actor/MSm3UetIna4",
  "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/5gjCKDhiu6w",
    "published": "2024-03-06T18:51:56Z",
    "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="mitra"
{
  "id": "018e151b-c2c6-40d5-3d9c-9b9fa1d2199f",
  "uri": "http://pasture_one_actor/actor/5gjCKDhiu6w",
  "url": null,
  "created_at": "2024-03-06T18:51:56Z",
  "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": 109,
    "source": null,
    "role": null,
    "authentication_methods": null,
    "client_config": null
  },
  "content": "10 images",
  "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": [
    {
      "id": "018e151b-c2ad-335d-9437-b2aac6cdda03",
      "type": "image",
      "url": "http://mitra/media/b30dc2cb8ab764231bbcbc5c558b875a8b6390b7cd2467cbeb2f23015fd8c59c.png",
      "preview_url": "http://mitra/media/b30dc2cb8ab764231bbcbc5c558b875a8b6390b7cd2467cbeb2f23015fd8c59c.png",
      "description": null
    },
    {
      "id": "018e151b-c2b5-07d6-59e5-a124df141287",
      "type": "image",
      "url": "http://mitra/media/3a1c7ab0490495c18dda83b002aa9baaeb3ae66e302da7defbd9bfe5d3da01d0.png",
      "preview_url": "http://mitra/media/3a1c7ab0490495c18dda83b002aa9baaeb3ae66e302da7defbd9bfe5d3da01d0.png",
      "description": null
    },
    {
      "id": "018e151b-c2b7-a28d-3ad0-fa40452440fc",
      "type": "image",
      "url": "http://mitra/media/f911ab444a0f29c8d9c4f96829fd5881bae57fba71d0716a3aad7f3828930db7.png",
      "preview_url": "http://mitra/media/f911ab444a0f29c8d9c4f96829fd5881bae57fba71d0716a3aad7f3828930db7.png",
      "description": null
    },
    {
      "id": "018e151b-c2b8-f5f9-6361-87e3b1a63701",
      "type": "image",
      "url": "http://mitra/media/7f3c420ff91e408d61e57666026f666d4b94a799a3fb82b499a30040bede993e.png",
      "preview_url": "http://mitra/media/7f3c420ff91e408d61e57666026f666d4b94a799a3fb82b499a30040bede993e.png",
      "description": null
    },
    {
      "id": "018e151b-c2ba-d372-0ab3-494ce61bbdc6",
      "type": "image",
      "url": "http://mitra/media/2215dc9a9511380080500d9d041eae0a9a6baa66a8d326746cc4c89eba462970.png",
      "preview_url": "http://mitra/media/2215dc9a9511380080500d9d041eae0a9a6baa66a8d326746cc4c89eba462970.png",
      "description": null
    },
    {
      "id": "018e151b-c2bc-dd29-3737-f7622fc87d56",
      "type": "image",
      "url": "http://mitra/media/d18357147caa962564afd788d5106098c6f257838c89e47af5f9a17ad1951279.png",
      "preview_url": "http://mitra/media/d18357147caa962564afd788d5106098c6f257838c89e47af5f9a17ad1951279.png",
      "description": null
    },
    {
      "id": "018e151b-c2bd-d033-2dca-6a75d7f0bacd",
      "type": "image",
      "url": "http://mitra/media/586cc9f0a02b0a8928d3229a3068175bfa5b2d7776d1d39b7a545347271a0ff3.png",
      "preview_url": "http://mitra/media/586cc9f0a02b0a8928d3229a3068175bfa5b2d7776d1d39b7a545347271a0ff3.png",
      "description": null
    },
    {
      "id": "018e151b-c2bf-73d4-118e-a34ef09ccd9c",
      "type": "image",
      "url": "http://mitra/media/653d35a3829cbd960c6e33d562f09b2e8e05e7a39b8d9af4ada46a685bb80131.png",
      "preview_url": "http://mitra/media/653d35a3829cbd960c6e33d562f09b2e8e05e7a39b8d9af4ada46a685bb80131.png",
      "description": null
    },
    {
      "id": "018e151b-c2c1-5be1-3fe8-b72043eca1c6",
      "type": "image",
      "url": "http://mitra/media/1e800272233cc53e1b0f16daac554efd5473d42d02734190728fd969253e0508.png",
      "preview_url": "http://mitra/media/1e800272233cc53e1b0f16daac554efd5473d42d02734190728fd969253e0508.png",
      "description": null
    },
    {
      "id": "018e151b-c2c3-bd73-49ad-bab9466638d9",
      "type": "image",
      "url": "http://mitra/media/9aac3cf11b642008a14014eeb23aeffe46eb9920b34277bc4d86cdefc0b9192f.png",
      "preview_url": "http://mitra/media/9aac3cf11b642008a14014eeb23aeffe46eb9920b34277bc4d86cdefc0b9192f.png",
      "description": null
    }
  ],
  "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 7

no result

no result