diff options
author | r <r@freesoftwareextremist.com> | 2019-12-24 14:55:05 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-24 14:55:05 +0000 |
commit | a24d87ad2044db01b5ce35c5fe581967fbde4cf6 (patch) | |
tree | 52fe7e1ded0aeaf11e801093f416d2fea55e3ebd /renderer | |
parent | 16300c93c1cfc65c95d0e95ec1249fae182283bd (diff) | |
download | bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.tar.gz bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.zip |
Add userinfo in navigation
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/model.go | 4 |
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, } } |