From cc40ca1ac01063441c35f8e5b57f813561a0b739 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Wed, 19 Aug 2015 09:52:03 -0400 Subject: Added a message deleted indicator when a post is deleted to let the user know what's happening. --- api/post.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api') diff --git a/api/post.go b/api/post.go index f6699d181..c013df87f 100644 --- a/api/post.go +++ b/api/post.go @@ -696,8 +696,7 @@ func deletePost(c *Context, w http.ResponseWriter, r *http.Request) { } message := model.NewMessage(c.Session.TeamId, post.ChannelId, c.Session.UserId, model.ACTION_POST_DELETED) - message.Add("post_id", post.Id) - message.Add("channel_id", post.ChannelId) + message.Add("post", post.ToJson()) PublishAndForget(message) -- cgit v1.2.3-1-g7c22