diff options
Diffstat (limited to 'ui/entry_bookmark.go')
-rw-r--r-- | ui/entry_bookmark.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/entry_bookmark.go b/ui/entry_bookmark.go index e6d2f0e..7c42a5c 100644 --- a/ui/entry_bookmark.go +++ b/ui/entry_bookmark.go @@ -25,12 +25,7 @@ func (c *Controller) ShowStarredEntry(w http.ResponseWriter, r *http.Request) { return } - entryID, err := request.IntParam(r, "entryID") - if err != nil { - html.BadRequest(w, err) - return - } - + entryID := request.RouteInt64Param(r, "entryID") builder := c.store.NewEntryQueryBuilder(user.ID) builder.WithEntryID(entryID) builder.WithoutStatus(model.EntryStatusRemoved) |