summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-09 12:35:44 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-09 15:44:28 -0500
commitc07c266b2759998f3133b3f970a26747601ed610 (patch)
tree9fce6878fade9b318b838cbba47a0dce2b94d6a8 /api/user.go
parentffe844339a2ebf20df0074aa64b5cafb8517f536 (diff)
downloadchat-c07c266b2759998f3133b3f970a26747601ed610.tar.gz
chat-c07c266b2759998f3133b3f970a26747601ed610.tar.bz2
chat-c07c266b2759998f3133b3f970a26747601ed610.zip
Omit unneeded fields from user object in getProfiles service and remove ImgCount field from Post model
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go1
1 files changed, 1 insertions, 0 deletions
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
}