diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-02 08:42:36 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-02 08:42:36 -0800 |
commit | ff54da2e4a1095a6f96f285aa218a5d162b68b51 (patch) | |
tree | 8d32c6b3ea91393342e65e905a5111e0678cbe06 /api/command.go | |
parent | 8e8fa97e6b27090e365290dcd4edd79d68218a37 (diff) | |
download | chat-ff54da2e4a1095a6f96f285aa218a5d162b68b51.tar.gz chat-ff54da2e4a1095a6f96f285aa218a5d162b68b51.tar.bz2 chat-ff54da2e4a1095a6f96f285aa218a5d162b68b51.zip |
Adding loc to front-end
Diffstat (limited to 'api/command.go')
-rw-r--r-- | api/command.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api/command.go b/api/command.go index f01727062..9835790ec 100644 --- a/api/command.go +++ b/api/command.go @@ -214,12 +214,12 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "") } } else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL { - post := &model.Post{} - post.ChannelId = channelId - post.Message = "TODO_EPHEMERAL: " + response.Text - if _, err := CreatePost(c, post, true); err != nil { - c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "") - } + // post := &model.Post{} + // post.ChannelId = channelId + // post.Message = "TODO_EPHEMERAL: " + response.Text + // if _, err := CreatePost(c, post, true); err != nil { + // c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "") + // } } w.Write([]byte(response.ToJson())) |