check summary for bad words
This commit is contained in:
parent
9c265b9f14
commit
e7a770bac2
1 changed files with 1 additions and 1 deletions
2
fun.go
2
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
|
||||
|
|
Loading…
Reference in a new issue