|
@@ -1,6 +1,10 @@ |
|
|
package htmlhouse |
|
|
package htmlhouse |
|
|
|
|
|
|
|
|
func passesPublicFilter(app *app, html string) bool { |
|
|
func passesPublicFilter(app *app, html string) bool { |
|
|
|
|
|
if app.cfg.BlacklistTerms == "" { |
|
|
|
|
|
return true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
spam := app.cfg.BlacklistReg.MatchString(html) |
|
|
spam := app.cfg.BlacklistReg.MatchString(html) |
|
|
return !spam |
|
|
return !spam |
|
|
} |
|
|
} |