Update types
authorMikael Berthe <mikael@lilotux.net>
Fri, 26 May 2017 11:20:29 +0200
changeset 182 d360e5a41070
parent 181 1217aa2a132b
child 183 cd5aa242c01f
Update types Update Account & Relationship types
types.go
--- a/types.go	Fri May 26 10:06:16 2017 +0200
+++ b/types.go	Fri May 26 11:20:29 2017 +0200
@@ -35,7 +35,8 @@
 	Note           string    `json:"note"`
 	URL            string    `json:"url"`
 	Avatar         string    `json:"avatar"`
-	Header         string    `json:"header"`
+	AvatarStatic   string    `json:"avatar_static"`
+	HeaderStatic   string    `json:"header_static"`
 	Locked         bool      `json:"locked"`
 	CreatedAt      time.Time `json:"created_at"`
 	FollowersCount int64     `json:"followers_count"`
@@ -106,12 +107,13 @@
 
 // Relationship represents a Mastodon relationship entity
 type Relationship struct {
-	ID         int64 `json:"id"`
-	Following  bool  `json:"following"`
-	FollowedBy bool  `json:"followed_by"`
-	Blocking   bool  `json:"blocking"`
-	Muting     bool  `json:"muting"`
-	Requested  bool  `json:"requested"`
+	ID           int64 `json:"id"`
+	Following    bool  `json:"following"`
+	FollowedBy   bool  `json:"followed_by"`
+	Blocking     bool  `json:"blocking"`
+	Muting       bool  `json:"muting"`
+	MutingBoosts bool  `json:"muting_boosts"`
+	Requested    bool  `json:"requested"`
 }
 
 // Report represents a Mastodon report entity