[GH-13968] Add "skip_slack_parsing" to PostActionIntegration… (#13976)
Этот коммит содержится в:
@@ -239,11 +239,16 @@ func (a *App) DoPostActionWithCookie(postId, actionId, userId, selectedOption st
|
||||
|
||||
if response.EphemeralText != "" {
|
||||
ephemeralPost := &model.Post{
|
||||
Message: model.ParseSlackLinksToMarkdown(response.EphemeralText),
|
||||
Message: response.EphemeralText,
|
||||
ChannelId: upstreamRequest.ChannelId,
|
||||
RootId: rootPostId,
|
||||
UserId: userId,
|
||||
}
|
||||
|
||||
if !response.SkipSlackParsing {
|
||||
ephemeralPost.Message = model.ParseSlackLinksToMarkdown(response.EphemeralText)
|
||||
}
|
||||
|
||||
for key, value := range retain {
|
||||
ephemeralPost.AddProp(key, value)
|
||||
}
|
||||
|
||||
@@ -173,8 +173,9 @@ type PostActionIntegrationRequest struct {
|
||||
}
|
||||
|
||||
type PostActionIntegrationResponse struct {
|
||||
Update *Post `json:"update"`
|
||||
EphemeralText string `json:"ephemeral_text"`
|
||||
Update *Post `json:"update"`
|
||||
EphemeralText string `json:"ephemeral_text"`
|
||||
SkipSlackParsing bool `json:"skip_slack_parsing"` // Set to `true` to skip the Slack-compatibility handling of Text.
|
||||
}
|
||||
|
||||
type PostActionAPIResponse struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user