summaryrefslogtreecommitdiffstats
path: root/api4/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/post.go')
-rw-r--r--api4/post.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/api4/post.go b/api4/post.go
index 3d1077358..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()))
}
@@ -139,8 +141,8 @@ func getFlaggedPostsForUser(c *Context, w http.ResponseWriter, r *http.Request)
return
}
- channelId := r.URL.Query().Get("in_channel")
- teamId := r.URL.Query().Get("in_team")
+ channelId := r.URL.Query().Get("channel_id")
+ teamId := r.URL.Query().Get("team_id")
var posts *model.PostList
var err *model.AppError