summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-08-19 11:15:58 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-08-19 11:15:58 -0400
commita0a951a0693ae57e7851b11371513e9716f81ab1 (patch)
treefbcc7590bc5376bc15c9e1517e4c665086f830da /api/post.go
parente664040f027496023119b492141b61cd99727183 (diff)
parentcc40ca1ac01063441c35f8e5b57f813561a0b739 (diff)
downloadchat-a0a951a0693ae57e7851b11371513e9716f81ab1.tar.gz
chat-a0a951a0693ae57e7851b11371513e9716f81ab1.tar.bz2
chat-a0a951a0693ae57e7851b11371513e9716f81ab1.zip
Merge pull request #398 from mattermost/mm-1593
MM-1593 Added a message deleted indicator
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go3
1 files changed, 1 insertions, 2 deletions
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)