aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/ui/controller/unread.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2017-11-21 18:37:08 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2017-11-21 18:37:08 -0800
commit1bc43ec2bc2282d9e18ca622444d45f09c1b6378 (patch)
treeacadc7a1bbbc508c0beee3bdb48879820eb1c2f0 /server/ui/controller/unread.go
parent02ff7b4bcf2b2c691e55ae61fe97bfd9ae37658e (diff)
Improve Context to be more idiomatic
Diffstat (limited to 'server/ui/controller/unread.go')
-rw-r--r--server/ui/controller/unread.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/ui/controller/unread.go b/server/ui/controller/unread.go
index 8457cf4..593ee38 100644
--- a/server/ui/controller/unread.go
+++ b/server/ui/controller/unread.go
@@ -11,7 +11,7 @@ import (
// ShowUnreadPage render the page with all unread entries.
func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, response *core.Response) {
- user := ctx.GetLoggedUser()
+ user := ctx.LoggedUser()
offset := request.QueryIntegerParam("offset", 0)
builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone)
@@ -37,8 +37,8 @@ func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, re
"user": user,
"countUnread": countUnread,
"entries": entries,
- "pagination": c.getPagination(ctx.GetRoute("unread"), countUnread, offset),
+ "pagination": c.getPagination(ctx.Route("unread"), countUnread, offset),
"menu": "unread",
- "csrf": ctx.GetCsrfToken(),
+ "csrf": ctx.CsrfToken(),
})
}