Account entity
This module defines a Hunter.Account struct.
Fields
id- the id of the accountusername- the username of the accountacct- equalsusernamefor local users, includes@domainfor remote onesdisplay_name- the account's display namelocked- boolean for when the account cannot be followed without waiting for approval firstcreated_at- the time the account was createdfollowers_count- the number of followers for the accountfollowing_count- the number of accounts the given account is followingstatuses_count- the number of statuses the account has madenote- biography of userurl- URL of the user's profile page (can be remote)avatar- URL to the avatar imageavatar_static- URL to the avatar static image (gif)header- URL to the header imageheader_static- URL to the header static image (gif)emojis- list of emojismoved- moved from accountfields- list ofHunter.Field, additional profile metadatabot- whether this account is a bot or notgroup- whether this account represents a group actordiscoverable- whether the account has opted into discovery featuresnoindex- whether the local user has opted out of search engine indexingsuspended- whether the account has been suspended (returns with limited profile data when true)limited- whether the account has been silencedlast_status_at- date (not time) of the account's last status, if anyhide_collections- whether the user hides their followers/following collectionsuri- the ActivityPub actor URI of the accountroles- list ofHunter.Rolewith a visible badgeattribution_domains- domains allowed to credit the account in link previewssource- profile source data as entered by the user (plain-textnote, defaultprivacy, etc.), only returned byverify_credentialsandupdate_credentials
Summary
Types
@type t() :: %Hunter.Account{ acct: String.t(), attribution_domains: [String.t()], avatar: String.t(), avatar_static: String.t(), bot: boolean(), created_at: String.t(), discoverable: boolean() | nil, display_name: String.t(), emojis: [Hunter.Emoji.t()], fields: [Hunter.Field.t()], followers_count: non_neg_integer(), following_count: non_neg_integer(), group: boolean(), header: String.t(), header_static: String.t(), hide_collections: boolean() | nil, id: String.t(), last_status_at: String.t() | nil, limited: boolean() | nil, locked: String.t(), moved: t(), noindex: boolean() | nil, note: String.t(), roles: [Hunter.Role.t()], source: map() | nil, statuses_count: non_neg_integer(), suspended: boolean() | nil, uri: String.t(), url: String.t(), username: String.t() }