summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-04-04 11:56:51 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-04-04 11:56:51 -0400
commit2bb9332467f54ed6e2bc39e088c1268a61b24b6e (patch)
treecef3e12e288fdf6bd11178e21af9cc1a0828128d
parent578749d08315945020fcf4466a6f0709a128dbbf (diff)
parent277630b560df031cca2b07e67afc8b65e66b8813 (diff)
downloadchat-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
-rw-r--r--api/post.go2
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