aboutsummaryrefslogtreecommitdiff
path: root/service
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 /service
parent16300c93c1cfc65c95d0e95ec1249fae182283bd (diff)
downloadbloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.tar.gz
bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.zip
Add userinfo in navigation
Diffstat (limited to 'service')
-rw-r--r--service/service.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/service/service.go b/service/service.go
index 27ee6bf..8a262b6 100644
--- a/service/service.go
+++ b/service/service.go
@@ -478,7 +478,12 @@ func (svc *service) getNavbarTemplateData(ctx context.Context, client io.Writer,
}
}
- data = renderer.NewNavbarTemplateData(notificationCount)
+ u, err := c.GetAccountCurrentUser(ctx)
+ if err != nil {
+ return
+ }
+
+ data = renderer.NewNavbarTemplateData(notificationCount, u)
return
}