diff options
author | JoramWilander <jwawilander@gmail.com> | 2016-04-04 11:12:37 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2016-04-04 11:12:37 -0400 |
commit | 277630b560df031cca2b07e67afc8b65e66b8813 (patch) | |
tree | a4f89bbc41a8c654b58dd767d51e218d88537e75 /api | |
parent | ead8e64ccb42081272bca1a498a08c05825ce9d0 (diff) | |
download | chat-277630b560df031cca2b07e67afc8b65e66b8813.tar.gz chat-277630b560df031cca2b07e67afc8b65e66b8813.tar.bz2 chat-277630b560df031cca2b07e67afc8b65e66b8813.zip |
Send notifications to the creator of a posting webhook
Diffstat (limited to 'api')
-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 |