check summary for bad words

This commit is contained in:
Ted Unangst 2019-06-01 16:08:19 -04:00
parent 9c265b9f14
commit e7a770bac2
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -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