summaryrefslogtreecommitdiffstats
path: root/api/command_msg.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_msg.go')
-rw-r--r--api/command_msg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_msg.go b/api/command_msg.go
index f8c8fae1c..6ed101004 100644
--- a/api/command_msg.go
+++ b/api/command_msg.go
@@ -86,7 +86,7 @@ func (me *msgProvider) DoCommand(c *Context, args *model.CommandArgs, message st
post.Message = parsedMessage
post.ChannelId = targetChannelId
post.UserId = c.Session.UserId
- if _, err := app.CreatePost(post, c.TeamId, true); err != nil {
+ if _, err := app.CreatePost(post, c.TeamId, true, c.GetSiteURL()); err != nil {
return &model.CommandResponse{Text: c.T("api.command_msg.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
}