Merge pull request #793 from hmhealey/plt367
PLT-367 Added a json response to the uploadProfileImage api call
Этот коммит содержится в:
@@ -817,6 +817,9 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
Srv.Store.User().UpdateLastPictureUpdate(c.Session.UserId)
|
Srv.Store.User().UpdateLastPictureUpdate(c.Session.UserId)
|
||||||
|
|
||||||
c.LogAudit("")
|
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) {
|
func updateUser(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user