From 260d7a0f850a6f772b14b011022f1f65213a08a1 Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Fri, 1 Jun 2018 12:45:46 -0400 Subject: MM-10412: Adds deleteBy prop to posts. (#8896) --- api4/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api4') 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 } -- cgit v1.2.3-1-g7c22