Hunter.Relationship (hunter v0.7.0)

Copy Markdown View Source

Relationship entity

This module defines a Hunter.Relationship struct.

Fields

  • id - target account id
  • following - whether the user is currently following the account
  • showing_reblogs - whether boosts from this account are shown in the home timeline
  • notifying - whether the user has enabled notifications for this account
  • languages - which languages the user is following this account for, if any
  • followed_by - whether the user is currently being followed by the account
  • blocking - whether the user is currently blocking the account
  • blocked_by - whether the account is currently blocking the user
  • muting - whether the user is currently muting the account
  • muting_notifications - whether the user is muting notifications from the account
  • muting_expires_at - when the mute expires, if the mute is temporary
  • requested - whether the user has requested to follow the account
  • requested_by - whether the account has requested to follow the user
  • domain_blocking - whether the user is currently blocking the user's domain
  • endorsed - whether the user is featuring the account on their profile
  • note - the user's private comment on the account

Summary

Types

t()

@type t() :: %Hunter.Relationship{
  blocked_by: boolean(),
  blocking: boolean(),
  domain_blocking: boolean(),
  endorsed: boolean(),
  followed_by: boolean(),
  following: boolean(),
  id: String.t(),
  languages: [String.t()] | nil,
  muting: boolean(),
  muting_expires_at: String.t() | nil,
  muting_notifications: boolean(),
  note: String.t(),
  notifying: boolean(),
  requested: boolean(),
  requested_by: boolean(),
  showing_reblogs: boolean()
}