From fcf21fd9dbccde539ec0bc8b8de4791f8a5172b6 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Thu, 7 Jun 2018 13:08:44 +0530 Subject: [PATCH] comment.go: include state in JSON response --- api/comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/comment.go b/api/comment.go index e15a04e..d7f4050 100644 --- a/api/comment.go +++ b/api/comment.go @@ -13,7 +13,7 @@ type comment struct { Html string `json:"html"` ParentHex string `json:"parentHex"` Score int `json:"score"` - State string `json:"-"` + State string `json:"state"` CreationDate time.Time `json:"creationDate"` VoteDirection int `json:"voteDirection"` }