Scroll to navigation

Mastodon::Entity::Status(3pm) User Contributed Perl Documentation Mastodon::Entity::Status(3pm)

NAME

Mastodon::Entity::Status - A Mastodon status

DESCRIPTION

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>

ATTRIBUTES

The ID of the status.
A Fediverse-unique resource ID.
URL to the status page (can be remote).
The Mastodon::Entity::Account which posted the status.
"undef" or the ID of the status it replies to.
"undef" or the ID of the account it replies to.
"undef" or the reblogged Mastodon::Entity::Status.
Body of the status; this will contain HTML (remote HTML already sanitized).
The time the status was created as a DateTime object.
The number of reblogs for the status.
The number of favourites for the status.
Whether the authenticated user has reblogged the status.
Whether the authenticated user has favourited the status.
Whether media attachments should be hidden by default.
If not empty, warning text that should be displayed before the actual content.
One of: "public", "unlisted", "private", "direct".
An array of Mastodon::Entity::Attachment objects.
An array of Mastodon::Entity::Mention objects.
An array of Mastodon::Entity::Tag objects.
Application from which the status was posted, as a Mastodon::Entity::Application object.

METHODS

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.

A shortcut to "get_status".
A shortcut to "get_status_context".
A shortcut to "get_status_card".
A shortcut to "get_status_reblogs".
A shortcut to "get_status_favourites".
A shortcut to "delete_status".
A shortcut to "reblog".
A shortcut to "unreblog".
A shortcut to "favourite".
A shortcut to "unfavourite".

AUTHOR

José Joaquín Atria <jjatria@cpan.org>

COPYRIGHT AND LICENSE

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.

2022-11-03 perl v5.36.0