aboutsummaryrefslogtreecommitdiffhomepage
path: root/fever
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-06-09 19:13:41 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-06-09 19:13:41 -0700
commit36dab8b5182215d53512525991cc23523bdf23dc (patch)
tree90de1fd0e7a0d1a2481c1a21d41178ea91142af7 /fever
parentc5373ff2bffb3a3e3d37b3eb6bd1cdc733d9c590 (diff)
Add more filters for API call /entries
New filters: - before (unix timestamp) - before_entry_id - after - after_entry_id - starred (boolean)
Diffstat (limited to 'fever')
-rw-r--r--fever/fever.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/fever/fever.go b/fever/fever.go
index 6986353..9fb6bdb 100644
--- a/fever/fever.go
+++ b/fever/fever.go
@@ -490,7 +490,7 @@ func (c *Controller) handleWriteItems(w http.ResponseWriter, r *http.Request) {
userID := ctx.UserID()
logger.Debug("[Fever] Receiving mark=item call for userID=%d", userID)
- entryID := request.FormIntValue(r, "id")
+ entryID := request.FormInt64Value(r, "id")
if entryID <= 0 {
return
}
@@ -548,7 +548,7 @@ func (c *Controller) handleWriteFeeds(w http.ResponseWriter, r *http.Request) {
userID := ctx.UserID()
logger.Debug("[Fever] Receiving mark=feed call for userID=%d", userID)
- feedID := request.FormIntValue(r, "id")
+ feedID := request.FormInt64Value(r, "id")
if feedID <= 0 {
return
}
@@ -557,7 +557,7 @@ func (c *Controller) handleWriteFeeds(w http.ResponseWriter, r *http.Request) {
builder.WithStatus(model.EntryStatusUnread)
builder.WithFeedID(feedID)
- before := request.FormIntValue(r, "before")
+ before := request.FormInt64Value(r, "before")
if before > 0 {
t := time.Unix(before, 0)
builder.BeforeDate(t)
@@ -589,7 +589,7 @@ func (c *Controller) handleWriteGroups(w http.ResponseWriter, r *http.Request) {
userID := ctx.UserID()
logger.Debug("[Fever] Receiving mark=group call for userID=%d", userID)
- groupID := request.FormIntValue(r, "id")
+ groupID := request.FormInt64Value(r, "id")
if groupID < 0 {
return
}
@@ -598,7 +598,7 @@ func (c *Controller) handleWriteGroups(w http.ResponseWriter, r *http.Request) {
builder.WithStatus(model.EntryStatusUnread)
builder.WithCategoryID(groupID)
- before := request.FormIntValue(r, "before")
+ before := request.FormInt64Value(r, "before")
if before > 0 {
t := time.Unix(before, 0)
builder.BeforeDate(t)