From c07c266b2759998f3133b3f970a26747601ed610 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Mon, 9 Nov 2015 12:35:44 -0500 Subject: Omit unneeded fields from user object in getProfiles service and remove ImgCount field from Post model --- api/user.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api/user.go') diff --git a/api/user.go b/api/user.go index 4a52cf88b..0f868a678 100644 --- a/api/user.go +++ b/api/user.go @@ -669,6 +669,7 @@ func getProfiles(c *Context, w http.ResponseWriter, r *http.Request) { } p.Sanitize(options) + p.ClearNonProfileFields() profiles[k] = p } -- cgit v1.2.3-1-g7c22