Ver a proveniência

Automatically pass public filter when no blacklist configured

pull/4/head
Matt Baer há 6 anos
ascendente
cometimento
7893f07a80
1 ficheiros alterados com 4 adições e 0 eliminações
  1. +4
    -0
      filter.go

+ 4
- 0
filter.go Ver ficheiro

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

Carregando…
Cancelar
Guardar