aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/entry_read.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/entry_read.go')
-rw-r--r--ui/entry_read.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/entry_read.go b/ui/entry_read.go
index 61c7114..eeaca8e 100644
--- a/ui/entry_read.go
+++ b/ui/entry_read.go
@@ -24,12 +24,7 @@ func (c *Controller) ShowReadEntry(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)