View Source ActivityPubClient.Status (ActivityPubClient v0.1.2)

Requests to the status (toot) API in Mastodon, also implemented in Pleroma.

Reference: https://docs.joinmastodon.org/methods/statuses/

Link to this section Summary

Functions

Posts a status (toot). Implemented by Mastodon and Pleroma.

Link to this section Functions

Link to this function

post_status(client, content, opts \\ [])

View Source

Posts a status (toot). Implemented by Mastodon and Pleroma.

Expects a %ActivityPubClient.Client{} struct, the status content and a keyword list of optional options. Options can be:

  • media_ids: List of Attachment ids to be attached as media
  • in_reply_to_id: ID of the status being replied to, if status is a reply
  • sensitive: Mark status and attached media as sensitive? (boolean)
  • spoiler_text: Text to be shown as a warning or subject before the actual content
  • visibility: Visibility of the posted status. Enumerable oneOf public, unlisted, private, direct
  • scheduled_at: ISO 8601 Datetime at which to schedule a status
  • language: ISO 639 language code for this status