aboutsummaryrefslogtreecommitdiff
path: root/mastodon
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-20 18:30:20 +0000
committerr <r@freesoftwareextremist.com>2019-12-20 18:30:20 +0000
commita1f49af1d93bccdd56d4538b149884418bd2ca2c (patch)
treeadd621fe17d9dbcf3625bcc7de1738ea8c89bc9f /mastodon
parent3d1e4cfa4c17eea9a64b8672df769c540fefdaeb (diff)
downloadbloat-a1f49af1d93bccdd56d4538b149884418bd2ca2c.tar.gz
bloat-a1f49af1d93bccdd56d4538b149884418bd2ca2c.zip
Add user page and follow/unfollow calls
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/accounts.go43
1 files changed, 24 insertions, 19 deletions
diff --git a/mastodon/accounts.go b/mastodon/accounts.go
index e6f5a6d..8cee6bb 100644
--- a/mastodon/accounts.go
+++ b/mastodon/accounts.go
@@ -9,27 +9,32 @@ import (
"time"
)
+type AccountPleroma struct {
+ Relationship Relationship `json:"relationship"`
+}
+
// Account hold information for mastodon account.
type Account struct {
- ID string `json:"id"`
- Username string `json:"username"`
- Acct string `json:"acct"`
- DisplayName string `json:"display_name"`
- Locked bool `json:"locked"`
- CreatedAt time.Time `json:"created_at"`
- FollowersCount int64 `json:"followers_count"`
- FollowingCount int64 `json:"following_count"`
- StatusesCount int64 `json:"statuses_count"`
- Note string `json:"note"`
- URL string `json:"url"`
- Avatar string `json:"avatar"`
- AvatarStatic string `json:"avatar_static"`
- Header string `json:"header"`
- HeaderStatic string `json:"header_static"`
- Emojis []Emoji `json:"emojis"`
- Moved *Account `json:"moved"`
- Fields []Field `json:"fields"`
- Bot bool `json:"bot"`
+ ID string `json:"id"`
+ Username string `json:"username"`
+ Acct string `json:"acct"`
+ DisplayName string `json:"display_name"`
+ Locked bool `json:"locked"`
+ CreatedAt time.Time `json:"created_at"`
+ FollowersCount int64 `json:"followers_count"`
+ FollowingCount int64 `json:"following_count"`
+ StatusesCount int64 `json:"statuses_count"`
+ Note string `json:"note"`
+ URL string `json:"url"`
+ Avatar string `json:"avatar"`
+ AvatarStatic string `json:"avatar_static"`
+ Header string `json:"header"`
+ HeaderStatic string `json:"header_static"`
+ Emojis []Emoji `json:"emojis"`
+ Moved *Account `json:"moved"`
+ Fields []Field `json:"fields"`
+ Bot bool `json:"bot"`
+ Pleroma AccountPleroma `json:"pleroma"`
}
// Field is a Mastodon account profile field.