aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/entry_scraper.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-09-23 21:02:26 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-23 21:02:26 -0700
commit9d08139f4363d3503398002bc82cb3746e3438cf (patch)
treeb09c1efb14445624e4a2771bf8cbcf3a9828ecf9 /ui/entry_scraper.go
parent844680e57328034c20a2d2b84bd315b55fee9e23 (diff)
Improve request package and add more unit tests
Diffstat (limited to 'ui/entry_scraper.go')
-rw-r--r--ui/entry_scraper.go7
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)