From e7a770bac257442e440bde02b20f529c521cdcbf Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 1 Jun 2019 16:08:19 -0400 Subject: [PATCH] check summary for bad words --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun.go b/fun.go index e775f63..766c795 100644 --- a/fun.go +++ b/fun.go @@ -82,7 +82,7 @@ func osmosis(honks []*Honk, userid int64) []*Honk { collapse := false for i, h := range honks { for _, z := range zwords { - if z.MatchString(h.Noise) { + if z.MatchString(h.Precis) || z.MatchString(h.Noise) { honks[i] = nil collapse = true break