Merge pull request #793 from hmhealey/plt367

PLT-367 Added a json response to the uploadProfileImage api call
Этот коммит содержится в:
Joram Wilander
2015-09-25 10:22:27 -04:00
родитель 4a871e9df8 7bb384b92d
Коммит 2322a7c74e

Просмотреть файл

@@ -817,6 +817,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) {