summaryrefslogtreecommitdiffstats
path: root/api/command.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.go
parent167dd22eefeeeb9c1eaebd990a4f5902bd366302 (diff)
downloadchat-d252e61c662479155081aeaf34fe0c6e4c3705d1.tar.gz
chat-d252e61c662479155081aeaf34fe0c6e4c3705d1.tar.bz2
chat-d252e61c662479155081aeaf34fe0c6e4c3705d1.zip
Revert/Fix PLT-2805 (#3873)
Diffstat (limited to 'api/command.go')
-rw-r--r--api/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command.go b/api/command.go
index 7e0708a4d..5556ed817 100644
--- a/api/command.go
+++ b/api/command.go
@@ -248,7 +248,7 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe
if response.ResponseType == model.COMMAND_RESPONSE_TYPE_IN_CHANNEL {
post.Message = response.Text
post.UserId = c.Session.UserId
- if _, err := CreatePost(c.TeamId, post, true); err != nil {
+ if _, err := CreatePost(c, post, true); err != nil {
c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "")
}
} else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL && response.Text != "" {