diff --git a/filter.go b/filter.go index 703f7e4..0e75516 100644 --- a/filter.go +++ b/filter.go @@ -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 }