diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-04-04 11:56:51 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-04-04 11:56:51 -0400 |
commit | 2bb9332467f54ed6e2bc39e088c1268a61b24b6e (patch) | |
tree | cef3e12e288fdf6bd11178e21af9cc1a0828128d /api/post.go | |
parent | 578749d08315945020fcf4466a6f0709a128dbbf (diff) | |
parent | 277630b560df031cca2b07e67afc8b65e66b8813 (diff) | |
download | chat-2bb9332467f54ed6e2bc39e088c1268a61b24b6e.tar.gz chat-2bb9332467f54ed6e2bc39e088c1268a61b24b6e.tar.bz2 chat-2bb9332467f54ed6e2bc39e088c1268a61b24b6e.zip |
Merge pull request #2626 from mattermost/plt-2150
PLT-2150 Send notifications to the creator of a posting webhook
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index 2fe5feb8e..6f88c815b 100644 --- a/api/post.go +++ b/api/post.go @@ -544,7 +544,7 @@ func sendNotifications(c *Context, post *model.Post, team *model.Team, channel * } for _, userId := range userIds { - if post.UserId == userId { + if post.UserId == userId && post.Props["from_webhook"] != "true" { continue } sendEmail := true |