Mastod...Status(3pm)

πŸ“¦
version 0.017 Β· 2 versions
  • 0.017 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.017 Β· alpine 3.24
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

Mastodon::Entity::Status β€” it's a Mastodon status, bestie. That's the whole vibe.


✨ DESCRIPTION ✨

Okay so listen. This object is not something you build yourself, no cap. It's meant to be generated from the data your Mastodon server hands over, using the coercions in Mastodon::Types. Like, let the machinery do it, you just receive the slay.

For current info (because the fediverse moves fast), go look at the Mastodon API documentation <https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#status> πŸ’–


πŸŽ€ ATTRIBUTES πŸŽ€

  • id β€” the ID of the status. its little name tag 🏷️
  • uri β€” a Fediverse-unique resource ID. iconic, one of a kind
  • url β€” URL to the status page (can be remote, it's giving long distance)
  • 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. reblog-ception fr fr
  • 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

πŸ’… 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. So basically: you don't gotta type all that out, she's got you 🫢

  • 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

πŸ‘‘ AUTHOR πŸ‘‘

  • 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. periodt πŸ’–


And that's the whole page, bestie! This was perl v5.36.0, dated 2022-11-03, from your friendly neighborhood User Contributed Perl Documentation β€” mwah, stay slay 🌈✨

πŸ“¦ where this page comes from