aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-24 14:55:05 +0000
committerr <r@freesoftwareextremist.com>2019-12-24 14:55:05 +0000
commita24d87ad2044db01b5ce35c5fe581967fbde4cf6 (patch)
tree52fe7e1ded0aeaf11e801093f416d2fea55e3ebd /renderer
parent16300c93c1cfc65c95d0e95ec1249fae182283bd (diff)
downloadbloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.tar.gz
bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.zip
Add userinfo in navigation
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,
}
}