Fix response for malformed command execute request (#5498)

Этот коммит содержится в:
Joram Wilander
2017-02-22 21:32:39 -05:00
коммит произвёл Corey Hulen
родитель ad61a63ad2
Коммит 9f65284ba1
3 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@@ -219,6 +219,10 @@ func executeCommand(c *Context, w http.ResponseWriter, r *http.Request) {
}
func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandResponse, commandArgs *model.CommandArgs, cmd *model.Command, builtIn bool) {
if c.Err != nil {
return
}
post := &model.Post{}
post.ChannelId = commandArgs.ChannelId
post.RootId = commandArgs.RootId