aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
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 },