fix incorrect json case #59

This commit is contained in:
Umputun
2018-06-18 15:38:00 -05:00
parent 8db933f9c7
commit d302679f07
+2 -2
View File
@@ -173,8 +173,8 @@ func (s *Rest) findUserCommentsCtrl(w http.ResponseWriter, r *http.Request) {
}
resp := struct {
Comments []store.Comment
Count int
Comments []store.Comment `json:"comments,omitempty"`
Count int `json:"count,omitempty"`
}{}
log.Printf("[DEBUG] get comments for userID %s, %s", userID, siteID)