diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-01 07:22:38 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-12-01 09:22:38 -0300 |
commit | f013d91b89c03e49e66d0726cb66be886bc80c01 (patch) | |
tree | c2d32780f2088a0d35ccc648b259ec3c997d183b /api | |
parent | 30dbc412cad0d0e7fe903f7297c6aa0ab499f110 (diff) | |
download | chat-f013d91b89c03e49e66d0726cb66be886bc80c01.tar.gz chat-f013d91b89c03e49e66d0726cb66be886bc80c01.tar.bz2 chat-f013d91b89c03e49e66d0726cb66be886bc80c01.zip |
Count posts to DMs as mentions when from webhooks (#4676)
Diffstat (limited to 'api')
-rw-r--r-- | api/post.go | 3 |
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) |