Mastodon::Entity::Status - A Mastodon status
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#status>
- id
- The ID of the status.
- uri
- A Fediverse-unique resource ID.
- url
- URL to the status page (can be remote).
- account
- The Mastodon::Entity::Account which posted the status.
- in_reply_to_id
- "undef" or the ID of the status it
replies to.
- in_reply_to_account_id
- "undef" or the ID of the account it
replies to.
- reblog
- "undef" or the reblogged
Mastodon::Entity::Status.
- content
- Body of the status; this will contain HTML (remote HTML already
sanitized).
- created_at
- The time the status was created as a DateTime object.
- reblogs_count
- The number of reblogs for the status.
- favourites_count
- The number of favourites for the status.
- reblogged
- Whether the authenticated user has reblogged the status.
- favourited
- Whether the authenticated user has favourited the status.
- sensitive
- Whether media attachments should be hidden by default.
- spoiler_text
- If not empty, warning text that should be displayed before the actual
content.
- visibility
- One of: "public",
"unlisted",
"private",
"direct".
- media_attachments
- An array of Mastodon::Entity::Attachment objects.
- mentions
- An array of Mastodon::Entity::Mention objects.
- tags
- An array of Mastodon::Entity::Tag objects.
- application
- Application from which the status was posted, as a
Mastodon::Entity::Application object.
This class provides the following convenience methods. They act as
a shortcut, passing the appropriate identifier of the current object as the
first argument to the corresponding methods in Mastodon::Client.
- fetch
- A shortcut to "get_status".
- fetch_context
- A shortcut to "get_status_context".
- fetch_card
- A shortcut to "get_status_card".
- fetch_reblogs
- A shortcut to "get_status_reblogs".
- fetch_favourites
- A shortcut to
"get_status_favourites".
- delete
- A shortcut to "delete_status".
- boost
- A shortcut to "reblog".
- unboost
- A shortcut to "unreblog".
- favourite
- A shortcut to "favourite".
- unfavourite
- A shortcut to "unfavourite".
- •
- José Joaquín Atria <jjatria@cpan.org>
This software is copyright (c) 2017 by José Joaquín
Atria.
This is free software; you can redistribute it and/or modify it
under the same terms as the Perl 5 programming language system itself.