Mastodon::Entity::Attachment(3pm)

Mastodon::Entity::Attachment3pm

A mastodon media attachment

Overview

This object should not be manually created. It is intended to be generated from the data received from a Mastodon server using the coercions in Mastodon::Types.

For current information, see the Mastodon API documentation <https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#attachment>

Attributes

id

ID of the attachment.

type

One of: "image", "video", "gifv".

url

URL of the locally hosted version of the image.

remote_url

For remote images, the remote URL of the original image.

preview_url

URL of the preview image

text_url

Shorter URL for the image, for insertion into text (only present on local images).

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Author

•

José Joaquín Atria <[email protected]>

From libmastodon-client-perl 0.017-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.