diff options
Diffstat (limited to 'api4/post.go')
-rw-r--r-- | api4/post.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api4/post.go b/api4/post.go index 886b64daa..3d0c681d1 100644 --- a/api4/post.go +++ b/api4/post.go @@ -55,6 +55,8 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) { return } + app.SetStatusOnline(c.Session.UserId, c.Session.Id, false) + w.WriteHeader(http.StatusCreated) w.Write([]byte(rp.ToJson())) } |