summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-01 07:22:38 -0500
committerenahum <nahumhbl@gmail.com>2016-12-01 09:22:38 -0300
commitf013d91b89c03e49e66d0726cb66be886bc80c01 (patch)
treec2d32780f2088a0d35ccc648b259ec3c997d183b /api/post.go
parent30dbc412cad0d0e7fe903f7297c6aa0ab499f110 (diff)
downloadchat-f013d91b89c03e49e66d0726cb66be886bc80c01.tar.gz
chat-f013d91b89c03e49e66d0726cb66be886bc80c01.tar.bz2
chat-f013d91b89c03e49e66d0726cb66be886bc80c01.zip
Count posts to DMs as mentions when from webhooks (#4676)
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go3
1 files changed, 3 insertions, 0 deletions
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)