diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-02-13 10:52:50 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-02-13 10:52:50 -0500 |
commit | e4effd0c15a188eeec7a11f281e529afd6a54f80 (patch) | |
tree | 2c9b0f451366c54e163ac6f4743adf9e1cbd9a26 /api/post.go | |
parent | 260f1111e8988b177550d2621fbf99df178ca57a (diff) | |
download | chat-e4effd0c15a188eeec7a11f281e529afd6a54f80.tar.gz chat-e4effd0c15a188eeec7a11f281e529afd6a54f80.tar.bz2 chat-e4effd0c15a188eeec7a11f281e529afd6a54f80.zip |
Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4
* Implement GET /channels/{channel_id}/posts endpoint for APIv4
* Implement GET /posts/{post_id} endpoint for APIv4
* Implement GET /posts/{post_id}/thread endpoint for APIv4
* Skip team get if it's a DM channel in handlePostEvents
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index 76d813940..28c81b9a5 100644 --- a/api/post.go +++ b/api/post.go @@ -58,7 +58,7 @@ func createPost(c *Context, w http.ResponseWriter, r *http.Request) { post.CreateAt = 0 } - rp, err := app.CreatePostAsUser(post, c.TeamId) + rp, err := app.CreatePostAsUser(post) if err != nil { c.Err = err return |