diff options
Diffstat (limited to 'app/notification.go')
-rw-r--r-- | app/notification.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go index 7ddba0bdb..2b9c9bcff 100644 --- a/app/notification.go +++ b/app/notification.go @@ -63,7 +63,10 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe otherUserId = userIds[0] } - mentionedUserIds[otherUserId] = true + if _, ok := profileMap[otherUserId]; ok { + mentionedUserIds[otherUserId] = true + } + if post.Props["from_webhook"] == "true" { mentionedUserIds[post.UserId] = true } |