Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
12dce033d6
Коммит
21a86506f9
@@ -70,7 +70,12 @@ func (a *App) CreateCommandPost(c request.CTX, post *model.Post, teamID string,
|
||||
}
|
||||
|
||||
if response.ResponseType == model.CommandResponseTypeInChannel {
|
||||
return a.CreatePostMissingChannel(c, post, true, true)
|
||||
// The post is only used for tests, so even if there are membership issues, we won't send the post to the client.
|
||||
createdPost, _, appErr := a.CreatePostMissingChannel(c, post, true, true)
|
||||
if appErr != nil {
|
||||
return nil, appErr
|
||||
}
|
||||
return createdPost, nil
|
||||
}
|
||||
|
||||
if (response.ResponseType == "" || response.ResponseType == model.CommandResponseTypeEphemeral) && (response.Text != "" || response.Attachments != nil) {
|
||||
|
||||
Ссылка в новой задаче
Block a user