aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 2719dbe..9ec4a9a 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -6,12 +6,14 @@ import (
)
type NavbarTemplateData struct {
+ User *mastodon.Account
NotificationCount int
}
-func NewNavbarTemplateData(notificationCount int) *NavbarTemplateData {
+func NewNavbarTemplateData(notificationCount int, user *mastodon.Account) *NavbarTemplateData {
return &NavbarTemplateData{
NotificationCount: notificationCount,
+ User: user,
}
}