fix push on mobile
This commit is contained in:
parent
f7ccbb849a
commit
02305aae92
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user