summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorThomas Balthazar <tbalthazar@users.noreply.github.com>2016-05-26 17:37:54 +0200
committerJoram Wilander <jwawilander@gmail.com>2016-05-26 11:37:54 -0400
commit934ff34ccb99641beb2bb1ea73bca836fadbdd1b (patch)
tree935002f8b011eb85f71cfa5952967b2c63b735e9 /api/post.go
parent6bd9996dafcd1bed80b8e952126c0cae39c36fb3 (diff)
downloadchat-934ff34ccb99641beb2bb1ea73bca836fadbdd1b.tar.gz
chat-934ff34ccb99641beb2bb1ea73bca836fadbdd1b.tar.bz2
chat-934ff34ccb99641beb2bb1ea73bca836fadbdd1b.zip
Send Post ID in webhooks (#3120)
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 92cbaf390..b20e7b47c 100644
--- a/api/post.go
+++ b/api/post.go
@@ -412,6 +412,8 @@ func handleWebhookEvents(c *Context, post *model.Post, team *model.Team, channel
p.Set("user_id", post.UserId)
p.Set("user_name", user.Username)
+ p.Set("post_id", post.Id)
+
p.Set("text", post.Message)
p.Set("trigger_word", firstWord)