summaryrefslogtreecommitdiffstats
path: root/api4/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-07-18 15:45:23 -0700
committerChristopher Speller <crspeller@gmail.com>2017-07-18 15:45:23 -0700
commit97f34e483b0fa8b2a8cfe75b72168cfa38cc9d80 (patch)
treeec2d68077dd2b12de3173871622f3ec2a2b61d35 /api4/post.go
parent21a3219b9b1df033635631afa751742bd4c56ea0 (diff)
parenta350f4dc0754e1aeabb64bd712ce05f7c59cfa60 (diff)
downloadchat-97f34e483b0fa8b2a8cfe75b72168cfa38cc9d80.tar.gz
chat-97f34e483b0fa8b2a8cfe75b72168cfa38cc9d80.tar.bz2
chat-97f34e483b0fa8b2a8cfe75b72168cfa38cc9d80.zip
Merge branch 'release-4.0'
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