Update types (add Muted to Status entity)
authorMikael Berthe <mikael@lilotux.net>
Fri, 26 May 2017 21:21:54 +0200
changeset 185 faa72b9877c5
parent 184 546db8bb5867
child 186 eb9e257ba50c
Update types (add Muted to Status entity) Revert MutingBoosts change (not implemented in Mastodon AFAICS).
types.go
--- a/types.go	Fri May 26 12:03:29 2017 +0200
+++ b/types.go	Fri May 26 21:21:54 2017 +0200
@@ -107,13 +107,12 @@
 
 // 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"`
-	MutingBoosts bool  `json:"muting_boosts"`
-	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"`
+	Requested  bool  `json:"requested"`
 }
 
 // Report represents a Mastodon report entity
@@ -144,6 +143,7 @@
 	FavouritesCount    int64        `json:"favourites_count"`
 	Reblogged          bool         `json:"reblogged"`
 	Favourited         bool         `json:"favourited"`
+	Muted              bool         `json:"muted"`
 	Sensitive          bool         `json:"sensitive"`
 	SpoilerText        string       `json:"spoiler_text"`
 	Visibility         string       `json:"visibility"`