summaryrefslogtreecommitdiffstats
path: root/app/command.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/command.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/command.go')
-rw-r--r--app/command.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/command.go b/app/command.go
index 96dd2656c..8bd025c8e 100644
--- a/app/command.go
+++ b/app/command.go
@@ -275,6 +275,10 @@ func (a *App) HandleCommandResponse(command *model.Command, args *model.CommandA
}
}
+ // Process Slack text replacements
+ response.Text = a.ProcessSlackText(response.Text)
+ response.Attachments = a.ProcessSlackAttachments(response.Attachments)
+
if _, err := a.CreateCommandPost(post, args.TeamId, response); err != nil {
l4g.Error(err.Error())
}