summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-08-19 09:52:03 -0400
committerJoramWilander <jwawilander@gmail.com>2015-08-19 09:52:03 -0400
commitcc40ca1ac01063441c35f8e5b57f813561a0b739 (patch)
treebb3b8ffab02d301cdb443f0cd65ef6627c4ecc37 /api/post.go
parent104f4a5ad8ee8bdd31713c31f355303fc1536e46 (diff)
downloadchat-cc40ca1ac01063441c35f8e5b57f813561a0b739.tar.gz
chat-cc40ca1ac01063441c35f8e5b57f813561a0b739.tar.bz2
chat-cc40ca1ac01063441c35f8e5b57f813561a0b739.zip
Added a message deleted indicator when a post is deleted to let the user know what's happening.
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)