summaryrefslogtreecommitdiffstats
path: root/api/command_msg.go
diff options
context:
space:
mode:
authorDavid Lu <david.lu97@outlook.com>2016-08-29 09:51:29 -0400
committerChristopher Speller <crspeller@gmail.com>2016-08-29 09:51:29 -0400
commitd252e61c662479155081aeaf34fe0c6e4c3705d1 (patch)
tree215df6f5c73009bebcae4a0fdfacdb2b3252c23b /api/command_msg.go
parent167dd22eefeeeb9c1eaebd990a4f5902bd366302 (diff)
downloadchat-d252e61c662479155081aeaf34fe0c6e4c3705d1.tar.gz
chat-d252e61c662479155081aeaf34fe0c6e4c3705d1.tar.bz2
chat-d252e61c662479155081aeaf34fe0c6e4c3705d1.zip
Revert/Fix PLT-2805 (#3873)
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 f54190f58..d7208f121 100644
--- a/api/command_msg.go
+++ b/api/command_msg.go
@@ -85,7 +85,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) *
post.Message = parsedMessage
post.ChannelId = targetChannelId
post.UserId = c.Session.UserId
- if _, err := CreatePost(c.TeamId, post, true); err != nil {
+ if _, err := CreatePost(c, post, true); err != nil {
return &model.CommandResponse{Text: c.T("api.command_msg.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
}