diff --git a/server/utils.go b/server/utils.go index a44ce76..11bd65b 100644 --- a/server/utils.go +++ b/server/utils.go @@ -169,8 +169,9 @@ func (p *Plugin) notifyGrant(badgeID badgesmodel.BadgeID, granter string, grante dmText += Tdm("badges.notify.dm_reason", "\nПочему? ") + reason } dmAttachment := model.SlackAttachment{ - Title: Tdm("badges.notify.title", "%sзначок выдан!", image), - Text: dmText, + Fallback: dmText, + Title: Tdm("badges.notify.title", "%sзначок выдан!", image), + Text: dmText, } model.ParseSlackAttachment(dmPost, []*model.SlackAttachment{&dmAttachment}) err := p.mm.Post.DM(p.BotUserID, granted.Id, dmPost)