diff options
Diffstat (limited to 'server/ui/controller/unread.go')
-rw-r--r-- | server/ui/controller/unread.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ui/controller/unread.go b/server/ui/controller/unread.go index 8cf8a38..1dd7b07 100644 --- a/server/ui/controller/unread.go +++ b/server/ui/controller/unread.go @@ -14,7 +14,7 @@ func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, re user := ctx.LoggedUser() offset := request.QueryIntegerParam("offset", 0) - builder := c.store.GetEntryQueryBuilder(user.ID, user.Timezone) + builder := c.store.NewEntryQueryBuilder(user.ID) builder.WithStatus(model.EntryStatusUnread) countUnread, err := builder.CountEntries() if err != nil { @@ -26,7 +26,7 @@ func (c *Controller) ShowUnreadPage(ctx *core.Context, request *core.Request, re offset = 0 } - builder = c.store.GetEntryQueryBuilder(user.ID, user.Timezone) + builder = c.store.NewEntryQueryBuilder(user.ID) builder.WithStatus(model.EntryStatusUnread) builder.WithOrder(model.DefaultSortingOrder) builder.WithDirection(user.EntryDirection) |