summaryrefslogtreecommitdiffstats
path: root/app/webhook.go
diff options
context:
space:
mode:
authorJoey Lee <jayd005@gmail.com>2017-11-18 03:17:59 +1100
committerHarrison Healey <harrisonmhealey@gmail.com>2017-11-17 11:17:59 -0500
commit3836f9992056410e00041004132f5d53b4e43300 (patch)
treea75570472e9000c7cde74454af7fa186dcab2062 /app/webhook.go
parent065d8e97313b9c8ffad37862665186668c88499f (diff)
downloadchat-3836f9992056410e00041004132f5d53b4e43300.tar.gz
chat-3836f9992056410e00041004132f5d53b4e43300.tar.bz2
chat-3836f9992056410e00041004132f5d53b4e43300.zip
PLT-7824 Added support for mentions with <@userid> and <!here> (#7615) (#7737)
Diffstat (limited to 'app/webhook.go')
-rw-r--r--app/webhook.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/webhook.go b/app/webhook.go
index f7efd3af0..5ce56aa88 100644
--- a/app/webhook.go
+++ b/app/webhook.go
@@ -537,6 +537,9 @@ func (a *App) HandleIncomingWebhook(hookId string, req *model.IncomingWebhookReq
channelName := req.ChannelName
webhookType := req.Type
+ text = a.ProcessSlackText(text)
+ req.Attachments = a.ProcessSlackAttachments(req.Attachments)
+
// attachments is in here for slack compatibility
if len(req.Attachments) > 0 {
if len(req.Props) == 0 {