Count posts to DMs as mentions when from webhooks (#4676)

This commit is contained in:
Joram Wilander
2016-12-01 07:22:38 -05:00
committed by enahum
parent 30dbc412ca
commit f013d91b89
7 changed files with 10 additions and 7 deletions

View File

@@ -600,6 +600,9 @@ func sendNotifications(c *Context, post *model.Post, team *model.Team, channel *
}
mentionedUserIds[otherUserId] = true
if post.Props["from_webhook"] == "true" {
mentionedUserIds[post.UserId] = true
}
} else {
keywords := getMentionKeywordsInChannel(profileMap)