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 /service | |
parent | 16300c93c1cfc65c95d0e95ec1249fae182283bd (diff) | |
download | bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.tar.gz bloat-a24d87ad2044db01b5ce35c5fe581967fbde4cf6.zip |
Add userinfo in navigation
Diffstat (limited to 'service')
-rw-r--r-- | service/service.go | 7 |
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 } |