From 06919c1ae7a2ddf134993a6a1c0953033b8227ff Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 25 Dec 2017 21:14:07 -0600 Subject: [PATCH] omit empty pin --- app/store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/store.go b/app/store/store.go index b3087a3e..2269eee1 100644 --- a/app/store/store.go +++ b/app/store/store.go @@ -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