diff --git a/pkg/notifier/slacknotifier/slack.go b/pkg/notifier/slacknotifier/slack.go index f1aee5840d..f2f5ff8db0 100644 --- a/pkg/notifier/slacknotifier/slack.go +++ b/pkg/notifier/slacknotifier/slack.go @@ -83,6 +83,13 @@ func filterSlackAttachments(args []interface{}) (slackAttachments []slack.Attach slackAttachments = append(slackAttachments, a) + case *slack.Attachment: + if firstAttachmentOffset == -1 { + firstAttachmentOffset = idx + } + + slackAttachments = append(slackAttachments, *a) + case types.SlackAttachmentCreator: if firstAttachmentOffset == -1 { firstAttachmentOffset = idx