From 3836f9992056410e00041004132f5d53b4e43300 Mon Sep 17 00:00:00 2001 From: Joey Lee Date: Sat, 18 Nov 2017 03:17:59 +1100 Subject: PLT-7824 Added support for mentions with <@userid> and (#7615) (#7737) --- app/webhook.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/webhook.go') 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 { -- cgit v1.2.3-1-g7c22