summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-11-04 16:15:17 -0300
committerChristopher Speller <crspeller@gmail.com>2016-11-04 15:15:17 -0400
commit205ccd1bd46e7005950d6ff3667c23ab81056183 (patch)
treefc120b07eebc91ad6e82b567da565d429fb376e2 /api/post.go
parentb37eb09c37f5580e08ebdc2ae3a9c5ce09463230 (diff)
downloadchat-205ccd1bd46e7005950d6ff3667c23ab81056183.tar.gz
chat-205ccd1bd46e7005950d6ff3667c23ab81056183.tar.bz2
chat-205ccd1bd46e7005950d6ff3667c23ab81056183.zip
PLT-4492 Mentions with a comma after them don't trigger notification jewel (#4451)
* PLT-4492 Mentions with a comma after them don't trigger notification jewel * Fix mentions for usernames with dots
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/api/post.go b/api/post.go
index 1a30dca14..e5e18cb52 100644
--- a/api/post.go
+++ b/api/post.go
@@ -503,9 +503,6 @@ func getExplicitMentions(message string, keywords map[string][]string) (map[stri
if ids, match := keywords[word]; match {
addMentionedUsers(ids)
isMention = true
- } else if _, ok := systemMentions[word]; !ok && strings.HasPrefix(word, "@") {
- potentialOthersMentioned = append(potentialOthersMentioned, word[1:])
- continue
}
if !isMention {