diff options
author | Corey Hulen <corey@hulen.com> | 2015-06-19 10:39:35 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-06-19 10:39:35 -0800 |
commit | ce0741c0b3dc99384e20f13829fa58754bfb479c (patch) | |
tree | be00a4631123ef3d28bd40912df0f17a53309d6d /api/post.go | |
parent | 213129255d4b1eba056806665a6309e109b531d9 (diff) | |
parent | 5aef020ca2684a816fce8bc22b0b53ffd594756c (diff) | |
download | chat-ce0741c0b3dc99384e20f13829fa58754bfb479c.tar.gz chat-ce0741c0b3dc99384e20f13829fa58754bfb479c.tar.bz2 chat-ce0741c0b3dc99384e20f13829fa58754bfb479c.zip |
Merge pull request #36 from mattermost/notification-fix
HELIUM fix a bug where mentions wouldn't update for words after certain characters
Diffstat (limited to 'api/post.go')
-rw-r--r-- | api/post.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go index 36607c231..3acc95551 100644 --- a/api/post.go +++ b/api/post.go @@ -302,7 +302,7 @@ func fireAndForgetNotifications(post *model.Post, teamId, teamUrl string) { // Build a map as a list of unique user_ids that are mentioned in this post splitF := func(c rune) bool { - return c == ',' || c == ' ' || c == '.' || c == '!' || c == '?' || c == ':' || c == '<' || c == '>' + return model.SplitRunes[c] } splitMessage := strings.FieldsFunc(strings.Replace(post.Message, "<br>", " ", -1), splitF) for _, word := range splitMessage { |