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 | ea2177868805dd13fadcc7b3ee8c734114820c47 (patch) | |
tree | fe3d5c0eb2161490715424c470c76a2cc4df260f /api | |
parent | 07c65be91c53846a92784b5b60b2b84e671e4112 (diff) | |
parent | 4835187a0557047d8787727862cc9675cfc6df8e (diff) | |
download | chat-ea2177868805dd13fadcc7b3ee8c734114820c47.tar.gz chat-ea2177868805dd13fadcc7b3ee8c734114820c47.tar.bz2 chat-ea2177868805dd13fadcc7b3ee8c734114820c47.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')
-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 { |