aboutsummaryrefslogtreecommitdiff
path: root/renderer/model.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-05-30 09:13:47 +0000
committerr <r@freesoftwareextremist.com>2021-05-30 09:13:47 +0000
commit4ab53547a81aa954b694fbde292c14bd2d04b76c (patch)
tree4ed7280db468abc4b9a05bf05d5d32776772342a /renderer/model.go
parent9f34b607498c09b4a21bdcc82b3295f6c94bd058 (diff)
parent44d4b0d379ddfe004bff710c5c3cb44692500ad4 (diff)
downloadbloat-4ab53547a81aa954b694fbde292c14bd2d04b76c.tar.gz
bloat-4ab53547a81aa954b694fbde292c14bd2d04b76c.zip
Merge branch 'master' into absolute_fluoride
Diffstat (limited to 'renderer/model.go')
-rw-r--r--renderer/model.go22
1 files changed, 15 insertions, 7 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 93cbbc6..4d3eea0 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -14,15 +14,10 @@ type Context struct {
CSRFToken string
UserID string
AntiDopamineMode bool
+ UserCSS string
Referrer string
}
-type NavData struct {
- CommonData *CommonData
- User *mastodon.Account
- PostContext model.PostContext
-}
-
type CommonData struct {
Title string
CustomCSS string
@@ -32,9 +27,17 @@ type CommonData struct {
Target string
}
+type NavData struct {
+ CommonData *CommonData
+ User *mastodon.Account
+ PostContext model.PostContext
+}
+
type ErrorData struct {
*CommonData
- Error string
+ Err string
+ Retry bool
+ SessionErr bool
}
type HomePageData struct {
@@ -132,3 +135,8 @@ type SettingsData struct {
Settings *model.Settings
PostFormats []model.PostFormat
}
+
+type FiltersData struct {
+ *CommonData
+ Filters []*mastodon.Filter
+}