diff --git a/app/rest/api/rest_public.go b/app/rest/api/rest_public.go index 17800afa..bb3268ca 100644 --- a/app/rest/api/rest_public.go +++ b/app/rest/api/rest_public.go @@ -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)