diff options
author | Martin Kraft <mkraft@users.noreply.github.com> | 2018-06-01 12:45:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 12:45:46 -0400 |
commit | 260d7a0f850a6f772b14b011022f1f65213a08a1 (patch) | |
tree | 1090ef2c0c1447be9e64baecd0d7336514922927 /api4/post.go | |
parent | 5992a729c50989b7a39e42a0aaed42bc3914fb13 (diff) | |
download | chat-260d7a0f850a6f772b14b011022f1f65213a08a1.tar.gz chat-260d7a0f850a6f772b14b011022f1f65213a08a1.tar.bz2 chat-260d7a0f850a6f772b14b011022f1f65213a08a1.zip |
MM-10412: Adds deleteBy prop to posts. (#8896)
Diffstat (limited to 'api4/post.go')
-rw-r--r-- | api4/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/post.go b/api4/post.go index b4392a74e..68c1967ff 100644 --- a/api4/post.go +++ b/api4/post.go @@ -264,7 +264,7 @@ func deletePost(c *Context, w http.ResponseWriter, r *http.Request) { } } - if _, err := c.App.DeletePost(c.Params.PostId); err != nil { + if _, err := c.App.DeletePost(c.Params.PostId, c.Session.UserId); err != nil { c.Err = err return } |