summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-24 16:47:27 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-24 16:47:34 -0400
commit7bb384b92dd7c0eb17f4037f5db872dc8b817dd9 (patch)
treeba1ac32d583abe978d01e6ec5e20b6f9e1c89e9e /api/user.go
parent6a4a73c2d37aa147e0aa2e157ca78ed275ef822b (diff)
downloadchat-7bb384b92dd7c0eb17f4037f5db872dc8b817dd9.tar.gz
chat-7bb384b92dd7c0eb17f4037f5db872dc8b817dd9.tar.bz2
chat-7bb384b92dd7c0eb17f4037f5db872dc8b817dd9.zip
Added a json response to the uploadProfileImage api call
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/api/user.go b/api/user.go
index 3cce3cdd3..406f1985b 100644
--- a/api/user.go
+++ b/api/user.go
@@ -821,6 +821,9 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
Srv.Store.User().UpdateLastPictureUpdate(c.Session.UserId)
c.LogAudit("")
+
+ // write something as the response since jQuery expects a json response
+ w.Write([]byte("true"))
}
func updateUser(c *Context, w http.ResponseWriter, r *http.Request) {