diff options
Diffstat (limited to 'api/command_msg.go')
-rw-r--r-- | api/command_msg.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_msg.go b/api/command_msg.go index f54190f58..d7208f121 100644 --- a/api/command_msg.go +++ b/api/command_msg.go @@ -85,7 +85,7 @@ func (me *msgProvider) DoCommand(c *Context, channelId string, message string) * post.Message = parsedMessage post.ChannelId = targetChannelId post.UserId = c.Session.UserId - if _, err := CreatePost(c.TeamId, post, true); err != nil { + if _, err := CreatePost(c, post, true); err != nil { return &model.CommandResponse{Text: c.T("api.command_msg.fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL} } } |