mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
Delay call of view.New
after logging the user in
There is no need to do extra work like creating a session and its associated view until the user has been properly identified and as many possibly-failing sql request have been successfully run.
This commit is contained in:
parent
d55b410800
commit
8d80e9103f
15 changed files with 37 additions and 53 deletions
|
@ -43,7 +43,6 @@ func (h *handler) showStarredPage(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
sess := session.New(h.store, request.SessionID(r))
|
||||
view := view.New(h.tpl, r, sess)
|
||||
|
||||
view.Set("total", count)
|
||||
view.Set("entries", entries)
|
||||
view.Set("pagination", getPagination(route.Path(h.router, "starred"), count, offset, user.EntriesPerPage))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue