This website works better with JavaScript.
Home
Explore
Help
Sign In
htmlhouse
/
htmlhouse
mirror of
https://github.com/writeas/htmlhouse
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
2
Activity
Browse Source
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
6 years ago
parent
2caebcfecf
commit
7893f07a80
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
filter.go
+ 4
- 0
filter.go
View File
@@ -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
}
Write
Preview
Loading…
Cancel
Save