omit empty pin

This commit is contained in:
Umputun
2017-12-25 21:14:07 -06:00
parent b2d22fce97
commit 06919c1ae7
+1 -1
View File
@@ -24,7 +24,7 @@ type Comment struct {
Score int `json:"score"`
Votes map[string]bool `json:"votes"`
Timestamp time.Time `json:"time"`
Pin bool `json:"pin"`
Pin bool `json:"pin,omitempty"`
}
// Locator keeps site and url of the post