Revert/Fix PLT-2805 (#3873)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
167dd22eef
Коммит
d252e61c66
@@ -248,7 +248,7 @@ func handleResponse(c *Context, w http.ResponseWriter, response *model.CommandRe
|
||||
if response.ResponseType == model.COMMAND_RESPONSE_TYPE_IN_CHANNEL {
|
||||
post.Message = response.Text
|
||||
post.UserId = c.Session.UserId
|
||||
if _, err := CreatePost(c.TeamId, post, true); err != nil {
|
||||
if _, err := CreatePost(c, post, true); err != nil {
|
||||
c.Err = model.NewLocAppError("command", "api.command.execute_command.save.app_error", nil, "")
|
||||
}
|
||||
} else if response.ResponseType == model.COMMAND_RESPONSE_TYPE_EPHEMERAL && response.Text != "" {
|
||||
|
||||
Ссылка в новой задаче
Block a user