diff options
author | FChannel <> | 2021-07-13 21:10:39 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-13 21:10:39 -0700 |
commit | 05bfa634cf8c42123c8c0a19e65aff7320dadf41 (patch) | |
tree | bf838eec3a2ba77e61261d9c2cc28e04f1725cad /client.go | |
parent | 6ba4ff0a930f3a3c053af2553950fcfe5b5ad180 (diff) |
added regex blacklist for posts in admin page
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 }, |