summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorStephen Kiers <stephen@stephenkiers.com>2018-02-13 13:20:46 -0700
committerStephen Kiers <stephen@stephenkiers.com>2018-02-13 13:20:46 -0700
commit69e56fc04237ae5a821a9d97c48bc830111d6c78 (patch)
tree22f2573385324ffb893972b13279196f3b90c43c /app/notification.go
parent2544ad70c392db2d859c98d582efad28ce59987d (diff)
downloadchat-69e56fc04237ae5a821a9d97c48bc830111d6c78.tar.gz
chat-69e56fc04237ae5a821a9d97c48bc830111d6c78.tar.bz2
chat-69e56fc04237ae5a821a9d97c48bc830111d6c78.zip
gofmt
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/notification.go b/app/notification.go
index 30ce83360..e158e08d5 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -819,7 +819,6 @@ func GetExplicitMentions(message string, keywords map[string][]string) *Explicit
ret.MentionedUserIds[id] = true
}
}
-
checkForMention := func(word string) bool {
isMention := false
@@ -849,7 +848,6 @@ func GetExplicitMentions(message string, keywords map[string][]string) *Explicit
return isMention
}
-
processText := func(text string) {
for _, word := range strings.FieldsFunc(text, func(c rune) bool {
// Split on any whitespace or punctuation that can't be part of an at mention or emoji pattern