Add poll support
[bloat] / mastodon / status.go
index 63de3cf814fa6bc072beb95eb8df0154bff1476a..b4f57ae308dbb68cc888fdfcd45b8b5531f4faca 100644 (file)
@@ -47,13 +47,14 @@ type Status struct {
        Application        Application  `json:"application"`
        Language           string       `json:"language"`
        Pinned             interface{}  `json:"pinned"`
+       Poll               *Poll        `json:"poll"`
 
        // Custom fields
-       Pleroma         StatusPleroma          `json:"pleroma"`
-       ShowReplies     bool                   `json:"show_replies"`
-       ReplyMap        map[string][]ReplyInfo `json:"reply_map"`
-       ReplyNumber     int                    `json:"reply_number"`
-       RetweetedByID   string                 `json:"retweeted_by_id"`
+       Pleroma       StatusPleroma          `json:"pleroma"`
+       ShowReplies   bool                   `json:"show_replies"`
+       ReplyMap      map[string][]ReplyInfo `json:"reply_map"`
+       ReplyNumber   int                    `json:"reply_number"`
+       RetweetedByID string                 `json:"retweeted_by_id"`
 }
 
 // Context hold information for mastodon context.