From 05bfa634cf8c42123c8c0a19e65aff7320dadf41 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 13 Jul 2021 21:10:39 -0700 Subject: added regex blacklist for posts in admin page --- client.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client.go') diff --git a/client.go b/client.go index de0168f..a46f2a1 100644 --- a/client.go +++ b/client.go @@ -63,6 +63,7 @@ type AdminPage struct { Reported []Report Domain string IsLocal bool + PostBlacklist []PostBlacklist } type Report struct { @@ -84,6 +85,11 @@ type NewsItem struct { Time int } +type PostBlacklist struct { + Id int + Regex string +} + func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) { t := template.Must(template.New("").Funcs(template.FuncMap{ "mod": func(i, j int) bool { return i%j == 0 }, -- cgit v1.2.3