aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/bookmark_entries.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/bookmark_entries.go')
-rw-r--r--ui/bookmark_entries.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/ui/bookmark_entries.go b/ui/bookmark_entries.go
index 09b9bf6..08385f6 100644
--- a/ui/bookmark_entries.go
+++ b/ui/bookmark_entries.go
@@ -7,7 +7,6 @@ package ui // import "miniflux.app/ui"
import (
"net/http"
- "miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/html"
"miniflux.app/http/route"
@@ -18,9 +17,7 @@ import (
// ShowStarredPage renders the page with all starred entries.
func (c *Controller) ShowStarredPage(w http.ResponseWriter, r *http.Request) {
- ctx := context.New(r)
-
- user, err := c.store.UserByID(ctx.UserID())
+ user, err := c.store.UserByID(request.UserID(r))
if err != nil {
html.ServerError(w, err)
return
@@ -47,8 +44,8 @@ func (c *Controller) ShowStarredPage(w http.ResponseWriter, r *http.Request) {
return
}
- sess := session.New(c.store, ctx)
- view := view.New(c.tpl, ctx, sess)
+ sess := session.New(c.store, request.SessionID(r))
+ view := view.New(c.tpl, r, sess)
view.Set("total", count)
view.Set("entries", entries)