aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/bookmark_entries.go
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-03-04 00:32:16 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-03-03 20:32:15 -0800
commit8d80e9103f836284b73bc8d176c5ca63c31b0dfc (patch)
treebe76d5d8f02499dfda0831616cfbc69ee8c336c1 /internal/ui/bookmark_entries.go
parentd55b41080062915e728b6afb75f5623927f100f7 (diff)
downloadv2-8d80e9103f836284b73bc8d176c5ca63c31b0dfc.tar.gz
v2-8d80e9103f836284b73bc8d176c5ca63c31b0dfc.tar.zst
v2-8d80e9103f836284b73bc8d176c5ca63c31b0dfc.zip
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.
Diffstat (limited to 'internal/ui/bookmark_entries.go')
-rw-r--r--internal/ui/bookmark_entries.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/ui/bookmark_entries.go b/internal/ui/bookmark_entries.go
index 049ab1ef..8e31b4fd 100644
--- a/internal/ui/bookmark_entries.go
+++ b/internal/ui/bookmark_entries.go
@@ -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))