From f013d91b89c03e49e66d0726cb66be886bc80c01 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 1 Dec 2016 07:22:38 -0500 Subject: Count posts to DMs as mentions when from webhooks (#4676) --- api/post.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api/post.go') diff --git a/api/post.go b/api/post.go index c646b056a..ef9c0991d 100644 --- a/api/post.go +++ b/api/post.go @@ -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) -- cgit v1.2.3-1-g7c22