From 7893f07a808f00a65c41777ac77bcab3708cbd20 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 12 Mar 2018 11:28:20 -0400 Subject: [PATCH] Automatically pass public filter when no blacklist configured --- filter.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }