summaryrefslogtreecommitdiffstats
path: root/app/plugin_commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/plugin_commands.go')
-rw-r--r--app/plugin_commands.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/plugin_commands.go b/app/plugin_commands.go
index 0f361f410..060defc86 100644
--- a/app/plugin_commands.go
+++ b/app/plugin_commands.go
@@ -9,6 +9,7 @@ import (
"strings"
"github.com/mattermost/mattermost-server/model"
+ "github.com/mattermost/mattermost-server/plugin"
)
type PluginCommand struct {
@@ -104,7 +105,7 @@ func (a *App) ExecutePluginCommand(args *model.CommandArgs) (*model.Command, *mo
if err != nil {
return pc.Command, nil, model.NewAppError("ExecutePluginCommand", "model.plugin_command.error.app_error", nil, "err="+err.Error(), http.StatusInternalServerError)
}
- response, appErr := pluginHooks.ExecuteCommand(args)
+ response, appErr := pluginHooks.ExecuteCommand(plugin.NewBlankContext(), args)
return pc.Command, response, appErr
}
}