LP-5613 #2
@ -169,8 +169,9 @@ func (p *Plugin) notifyGrant(badgeID badgesmodel.BadgeID, granter string, grante
|
|||||||
dmText += Tdm("badges.notify.dm_reason", "\nПочему? ") + reason
|
dmText += Tdm("badges.notify.dm_reason", "\nПочему? ") + reason
|
||||||
}
|
}
|
||||||
dmAttachment := model.SlackAttachment{
|
dmAttachment := model.SlackAttachment{
|
||||||
Title: Tdm("badges.notify.title", "%sзначок выдан!", image),
|
Fallback: dmText,
|
||||||
Text: dmText,
|
Title: Tdm("badges.notify.title", "%sзначок выдан!", image),
|
||||||
|
Text: dmText,
|
||||||
}
|
}
|
||||||
model.ParseSlackAttachment(dmPost, []*model.SlackAttachment{&dmAttachment})
|
model.ParseSlackAttachment(dmPost, []*model.SlackAttachment{&dmAttachment})
|
||||||
err := p.mm.Post.DM(p.BotUserID, granted.Id, dmPost)
|
err := p.mm.Post.DM(p.BotUserID, granted.Id, dmPost)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user