aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <>2021-07-13 21:10:39 -0700
committerFChannel <>2021-07-13 21:10:39 -0700
commit05bfa634cf8c42123c8c0a19e65aff7320dadf41 (patch)
treebf838eec3a2ba77e61261d9c2cc28e04f1725cad /client.go
parent6ba4ff0a930f3a3c053af2553950fcfe5b5ad180 (diff)
added regex blacklist for posts in admin page
Diffstat (limited to 'client.go')
-rw-r--r--client.go6
1 files changed, 6 insertions, 0 deletions
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 },