瀏覽代碼

Automatically pass public filter when no blacklist configured

pull/4/head
Matt Baer 6 年之前
父節點
當前提交
7893f07a80
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      filter.go

+ 4
- 0
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
}

Loading…
取消
儲存