Hunter.Status (hunter v0.7.0)

Copy Markdown View Source

Status entity

Fields

  • id - status id
  • uri - a Fediverse-unique resource ID
  • url - URL to the status page (can be remote)
  • account - the Hunter.Account which posted the status
  • in_reply_to_id - nil or the ID of the status it replies to
  • in_reply_to_account_id - nil or the ID of the account it replies to
  • reblog - nil or the reblogged Hunter.Status
  • content - body of the status; this will contain HTML (remote HTML already sanitized)
  • created_at - time the status was created
  • reblogs_count - number of reblogs for the status
  • favourites_count - number of favourites for the status
  • reblogged - whether the authenticated user has reblogged the status
  • favourited - whether the authenticated user has favourited the status
  • muted - whether the authenticated user has muted the conversation this status from
  • 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 - A list of Hunter.Attachment
  • mentions - list of Hunter.Mention
  • tags - list of Hunter.Tag
  • application - Hunter.Application from which the status was posted
  • language - detected language for the status, default: en
  • card - preview card generated for links in the status, if any
  • emojis - list of Hunter.Emoji, custom emoji used in the status
  • text - plain-text source of the status, returned instead of content when the status is deleted
  • created_at - time the status was created
  • edited_at - time of the most recent edit, nil if never edited
  • replies_count - number of replies to the status
  • bookmarked - whether the authenticated user has bookmarked the status
  • pinned - whether the authenticated user has pinned the status (only present on the user's own statuses)
  • poll - the Hunter.Poll attached to the status, if any
  • filtered - list of Hunter.FilterResult, filters that matched the status for the authenticated user
  • quote - the Hunter.Quote of another status, if any
  • quote_approval - summary of the status' quote approval policy and how it applies to the requesting user (automatic, manual and current_user keys)

NOTE: When spoiler_text is present, sensitive is true

Summary

Types

t()

@type t() :: %Hunter.Status{
  account: Hunter.Account.t(),
  application: Hunter.Application.t(),
  bookmarked: boolean(),
  card: Hunter.Card.t() | nil,
  content: String.t(),
  created_at: String.t(),
  edited_at: String.t() | nil,
  emojis: [Hunter.Emoji.t()],
  favourited: boolean(),
  favourites_count: non_neg_integer(),
  filtered: [Hunter.FilterResult.t()] | nil,
  id: String.t(),
  in_reply_to_account_id: String.t() | nil,
  in_reply_to_id: String.t() | nil,
  language: String.t(),
  media_attachments: [Hunter.Attachment.t()],
  mentions: [Hunter.Mention.t()],
  muted: boolean(),
  pinned: boolean() | nil,
  poll: Hunter.Poll.t() | nil,
  quote: Hunter.Quote.t() | nil,
  quote_approval: map() | nil,
  reblog: t() | nil,
  reblogged: boolean(),
  reblogs_count: non_neg_integer(),
  replies_count: non_neg_integer(),
  sensitive: boolean(),
  spoiler_text: String.t(),
  tags: [Hunter.Tag.t()],
  text: String.t() | nil,
  uri: String.t(),
  url: String.t(),
  visibility: String.t()
}