summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
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)