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

Этот коммит содержится в:
Joram Wilander
2016-12-01 07:22:38 -05:00
коммит произвёл enahum
родитель 30dbc412ca
Коммит f013d91b89
7 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@@ -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)