From 2d0fef4d943198014913069d2b79a73f2e3a7d9a Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 11 Apr 2018 10:33:20 -0400 Subject: MM-10036 Ensured correct handling of capitalized special mentions (#8607) --- app/notification.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/notification.go') diff --git a/app/notification.go b/app/notification.go index 5b7ed5ad2..06c1c19bc 100644 --- a/app/notification.go +++ b/app/notification.go @@ -842,15 +842,15 @@ func GetExplicitMentions(message string, keywords map[string][]string) *Explicit checkForMention := func(word string) bool { isMention := false - if word == "@here" { + if strings.ToLower(word) == "@here" { ret.HereMentioned = true } - if word == "@channel" { + if strings.ToLower(word) == "@channel" { ret.ChannelMentioned = true } - if word == "@all" { + if strings.ToLower(word) == "@all" { ret.AllMentioned = true } -- cgit v1.2.3-1-g7c22