add Discoverable and Source on Account

pull/149/head
Rasmus Lindroth 2022-05-17 19:35:39 +02:00 committed by mattn
parent 87278bda2e
commit c6a292132e
1 changed files with 21 additions and 19 deletions

View File

@ -11,25 +11,27 @@ import (
// Account hold information for mastodon account. // Account hold information for mastodon account.
type Account struct { type Account struct {
ID ID `json:"id"` ID ID `json:"id"`
Username string `json:"username"` Username string `json:"username"`
Acct string `json:"acct"` Acct string `json:"acct"`
DisplayName string `json:"display_name"` DisplayName string `json:"display_name"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
FollowersCount int64 `json:"followers_count"` FollowersCount int64 `json:"followers_count"`
FollowingCount int64 `json:"following_count"` FollowingCount int64 `json:"following_count"`
StatusesCount int64 `json:"statuses_count"` StatusesCount int64 `json:"statuses_count"`
Note string `json:"note"` Note string `json:"note"`
URL string `json:"url"` URL string `json:"url"`
Avatar string `json:"avatar"` Avatar string `json:"avatar"`
AvatarStatic string `json:"avatar_static"` AvatarStatic string `json:"avatar_static"`
Header string `json:"header"` Header string `json:"header"`
HeaderStatic string `json:"header_static"` HeaderStatic string `json:"header_static"`
Emojis []Emoji `json:"emojis"` Emojis []Emoji `json:"emojis"`
Moved *Account `json:"moved"` Moved *Account `json:"moved"`
Fields []Field `json:"fields"` Fields []Field `json:"fields"`
Bot bool `json:"bot"` Bot bool `json:"bot"`
Discoverable bool `json:"discoverable"`
Source *AccountSource `json:"source"`
} }
// Field is a Mastodon account profile field. // Field is a Mastodon account profile field.