aboutsummaryrefslogtreecommitdiff
path: root/server/ui/controller/controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/ui/controller/controller.go')
-rw-r--r--server/ui/controller/controller.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ui/controller/controller.go b/server/ui/controller/controller.go
index 535fbba4..22c9dce4 100644
--- a/server/ui/controller/controller.go
+++ b/server/ui/controller/controller.go
@@ -29,7 +29,7 @@ type Controller struct {
}
func (c *Controller) getCommonTemplateArgs(ctx *core.Context) (tplParams, error) {
- user := ctx.GetLoggedUser()
+ user := ctx.LoggedUser()
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
builder.WithStatus(model.EntryStatusUnread)
@@ -42,7 +42,7 @@ func (c *Controller) getCommonTemplateArgs(ctx *core.Context) (tplParams, error)
"menu": "",
"user": user,
"countUnread": countUnread,
- "csrf": ctx.GetCsrfToken(),
+ "csrf": ctx.CsrfToken(),
}
return params, nil
}