Parcourir la source

Automatically pass public filter when no blacklist configured

pull/4/head
Matt Baer il y a 6 ans
Parent
révision
7893f07a80
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      filter.go

+ 4
- 0
filter.go Voir le fichier

@@ -1,6 +1,10 @@
package htmlhouse

func passesPublicFilter(app *app, html string) bool {
if app.cfg.BlacklistTerms == "" {
return true
}

spam := app.cfg.BlacklistReg.MatchString(html)
return !spam
}

Chargement…
Annuler
Enregistrer