summaryrefslogtreecommitdiffstats
path: root/api/command_echo.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/command_echo.go')
-rw-r--r--api/command_echo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/command_echo.go b/api/command_echo.go
index c219945c7..2e931e414 100644
--- a/api/command_echo.go
+++ b/api/command_echo.go
@@ -9,6 +9,7 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
+ "github.com/mattermost/platform/app"
"github.com/mattermost/platform/model"
)
@@ -87,7 +88,7 @@ func (me *EchoProvider) DoCommand(c *Context, args *model.CommandArgs, message s
time.Sleep(time.Duration(delay) * time.Second)
- if _, err := CreatePost(c, post, true); err != nil {
+ if _, err := app.CreatePost(post, c.TeamId, true); err != nil {
l4g.Error(c.T("api.command_echo.create.app_error"), err)
}
}()