aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-30 16:51:09 +0000
committerr <r@freesoftwareextremist.com>2021-01-30 16:53:57 +0000
commit4f1425febf6efb45eaf91aff19b215b8c7e77bec (patch)
treeb6b72093906cac8c98ef9d593eed62214c3b5ceb /renderer
parent3ac95ab3b117ee8867a30c8e4b30ab37411e5ccf (diff)
downloadbloat-4f1425febf6efb45eaf91aff19b215b8c7e77bec.tar.gz
bloat-4f1425febf6efb45eaf91aff19b215b8c7e77bec.zip
Add filters
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go5
-rw-r--r--renderer/renderer.go1
2 files changed, 6 insertions, 0 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 6c3ba90..aed444a 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -127,3 +127,8 @@ type SettingsData struct {
Settings *model.Settings
PostFormats []model.PostFormat
}
+
+type FiltersData struct {
+ *CommonData
+ Filters []*mastodon.Filter
+}
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 3d4685f..067632f 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -29,6 +29,7 @@ const (
RetweetedByPage = "retweetedby.tmpl"
SearchPage = "search.tmpl"
SettingsPage = "settings.tmpl"
+ FiltersPage = "filters.tmpl"
)
type TemplateData struct {