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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/fvNx_5QVycc",
"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/nl0WZ7DKrmE",
"published": "2024-04-01T10:28:34Z",
"content": "Link",
"attachment": {
"href": "https://funfedi.dev",
"type": "Link"
}
}
}
mastodon
{
"id": "112195489929293359",
"created_at": "2024-04-01T10:28:34.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/nl0WZ7DKrmE",
"url": "http://pasture-one-actor/actor/nl0WZ7DKrmE",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/OG9Z22us4zM",
"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/hVaQPV1BVf4",
"published": "2024-04-01T10:28:35Z",
"content": "Payment Link, see FEP-0ea0",
"attachment": {
"type": "Link",
"name": "Donate",
"href": "payto://iban/DE75512108001245126199",
"rel": "payment"
}
}
}
mastodon
{
"id": "112195489987266176",
"created_at": "2024-04-01T10:28:35.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/hVaQPV1BVf4",
"url": "http://pasture-one-actor/actor/hVaQPV1BVf4",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/NUhaiFMBl5w",
"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/oIsxRaFmrIQ",
"published": "2024-04-01T10:28:36Z",
"content": "Text document",
"attachment": {
"type": "Document",
"name": "text document",
"url": "http://pasture-one-actor/assets/sample.txt"
}
}
}
mastodon
{
"id": "112195490052459059",
"created_at": "2024-04-01T10:28:36.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/oIsxRaFmrIQ",
"url": "http://pasture-one-actor/actor/oIsxRaFmrIQ",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "112195490049768849",
"type": "unknown",
"url": "http://mastodon/media_proxy/112195490049768849/original",
"preview_url": "http://mastodon/media_proxy/112195490049768849/small",
"remote_url": "http://pasture-one-actor/assets/sample.txt",
"preview_remote_url": null,
"text_url": null,
"meta": null,
"description": "text document",
"blurhash": null
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/CWv8Bq7bAKU",
"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/sdwALd5bDiQ",
"published": "2024-04-01T10:28:37Z",
"content": "Text document, href instead of url",
"attachment": {
"type": "Document",
"name": "text document",
"href": "http://pasture-one-actor/assets/sample.txt"
}
}
}
mastodon
{
"id": "112195490123727987",
"created_at": "2024-04-01T10:28:37.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/sdwALd5bDiQ",
"url": "http://pasture-one-actor/actor/sdwALd5bDiQ",
"replies_count": 0,
"reblogs_count": 0,
"favourites_count": 0,
"edited_at": null,
"favourited": false,
"reblogged": false,
"muted": false,
"bookmarked": false,
"content": "Text document, href instead of url",
"filtered": [],
"reblog": null,
"account": {
"id": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/rQ_eFAiF9qI",
"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/a-edq1oufzw",
"published": "2024-04-01T10:28:38Z",
"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"
}
}
}
mastodon
{
"id": "112195490181663192",
"created_at": "2024-04-01T10:28:38.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/a-edq1oufzw",
"url": "http://pasture-one-actor/actor/a-edq1oufzw",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/8v0sOUT3vH0",
"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/WccwgrRFBfY",
"published": "2024-04-01T10:28:39Z",
"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"
}
]
}
}
}
mastodon
{
"id": "112195490236752784",
"created_at": "2024-04-01T10:28:39.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/WccwgrRFBfY",
"url": "http://pasture-one-actor/actor/WccwgrRFBfY",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}
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://mastodon/users/hippo",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/JA5RYre1qqs",
"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/bt_uuD8jesY",
"published": "2024-04-01T10:28:39Z",
"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"
}
]
}
}
mastodon
{
"id": "112195490302962577",
"created_at": "2024-04-01T10:28:39.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/bt_uuD8jesY",
"url": "http://pasture-one-actor/actor/bt_uuD8jesY",
"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": "112195465096445659",
"username": "actor",
"acct": "actor@pasture-one-actor",
"display_name": "Test Actor",
"locked": false,
"bot": false,
"discoverable": false,
"group": false,
"created_at": "2024-04-01T00: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": 110,
"last_status_at": "2024-04-01",
"emojis": [],
"fields": []
},
"media_attachments": [
{
"id": "112195490292859078",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/292/859/078/original/e2fafb3a77377fbe.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/292/859/078/small/e2fafb3a77377fbe.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": "U2E|gM?:fQ?:?:j@fQj@fQfQfQfQ?:j@fQj@"
},
{
"id": "112195490295696871",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/295/696/871/original/e606de072c3d0a60.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/295/696/871/small/e606de072c3d0a60.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": "U34n|9omfQomomfRfQfRfQfQfQfQomfRfQfR"
},
{
"id": "112195490297883276",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/297/883/276/original/093b7a139d5f2359.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/297/883/276/small/093b7a139d5f2359.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": "U5IJaT,#fQ,#,#jufQjufQfQfQfQ,#jufQju"
},
{
"id": "112195490300542523",
"type": "image",
"url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/300/542/523/original/6146db3f08c9e2e2.png",
"preview_url": "http://localhost:2970/system/cache/media_attachments/files/112/195/490/300/542/523/small/6146db3f08c9e2e2.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": "U61UvZl%fQl%l%fkfQfkfQfQfQfQl%fkfQfk"
}
],
"mentions": [],
"tags": [],
"emojis": [],
"card": null,
"poll": null
}