comment.go: omit state if empty
This commit is contained in:
parent
e1effd2a45
commit
638f7ba197
@ -13,7 +13,7 @@ type comment struct {
|
||||
Html string `json:"html"`
|
||||
ParentHex string `json:"parentHex"`
|
||||
Score int `json:"score"`
|
||||
State string `json:"state"`
|
||||
State string `json:"state,omitempty"`
|
||||
CreationDate time.Time `json:"creationDate"`
|
||||
Direction int `json:"direction"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user