summaryrefslogtreecommitdiffstats
path: root/api/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command.go')
-rw-r--r--api/command.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/command.go b/api/command.go
index 7e0a1e232..c3a64702f 100644
--- a/api/command.go
+++ b/api/command.go
@@ -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