summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-04-04 11:12:37 -0400
committerJoramWilander <jwawilander@gmail.com>2016-04-04 11:12:37 -0400
commit277630b560df031cca2b07e67afc8b65e66b8813 (patch)
treea4f89bbc41a8c654b58dd767d51e218d88537e75 /api/post.go
parentead8e64ccb42081272bca1a498a08c05825ce9d0 (diff)
downloadchat-277630b560df031cca2b07e67afc8b65e66b8813.tar.gz
chat-277630b560df031cca2b07e67afc8b65e66b8813.tar.bz2
chat-277630b560df031cca2b07e67afc8b65e66b8813.zip
Send notifications to the creator of a posting webhook
Diffstat (limited to 'api/post.go')
-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