omit empty pin
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user