From 277630b560df031cca2b07e67afc8b65e66b8813 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Mon, 4 Apr 2016 11:12:37 -0400 Subject: Send notifications to the creator of a posting webhook --- api/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22