diff options
Diffstat (limited to 'ui/entry_scraper.go')
-rw-r--r-- | ui/entry_scraper.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go index b4a290f..4c2d58c 100644 --- a/ui/entry_scraper.go +++ b/ui/entry_scraper.go @@ -17,12 +17,7 @@ import ( // FetchContent downloads the original HTML page and returns relevant contents. func (c *Controller) FetchContent(w http.ResponseWriter, r *http.Request) { - entryID, err := request.IntParam(r, "entryID") - if err != nil { - json.BadRequest(w, err) - return - } - + entryID := request.RouteInt64Param(r, "entryID") builder := c.store.NewEntryQueryBuilder(request.UserID(r)) builder.WithEntryID(entryID) builder.WithoutStatus(model.EntryStatusRemoved) |