mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 02:00:45 +08:00
Send notifications to the creator of a posting webhook
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user