Procházet zdrojové kódy

Automatically pass public filter when no blacklist configured

pull/4/head
Matt Baer před 6 roky
rodič
revize
7893f07a80
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      filter.go

+ 4
- 0
filter.go Zobrazit soubor

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

Načítá se…
Zrušit
Uložit