diff options
Diffstat (limited to 'internal/ui/subscription_bookmarklet.go')
-rw-r--r-- | internal/ui/subscription_bookmarklet.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/ui/subscription_bookmarklet.go b/internal/ui/subscription_bookmarklet.go index 120ea9e2..990e6428 100644 --- a/internal/ui/subscription_bookmarklet.go +++ b/internal/ui/subscription_bookmarklet.go @@ -17,9 +17,6 @@ import ( ) func (h *handler) bookmarklet(w http.ResponseWriter, r *http.Request) { - sess := session.New(h.store, request.SessionID(r)) - view := view.New(h.tpl, r, sess) - user, err := h.store.UserByID(request.UserID(r)) if err != nil { html.ServerError(w, r, err) @@ -45,6 +42,8 @@ func (h *handler) bookmarklet(w http.ResponseWriter, r *http.Request) { bookmarkletURL = xurls.Relaxed().FindString(text) } + sess := session.New(h.store, request.SessionID(r)) + view := view.New(h.tpl, r, sess) view.Set("form", form.SubscriptionForm{URL: bookmarkletURL}) view.Set("categories", categories) view.Set("menu", "feeds") |