1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 18:15:56 +00:00

implement catchup with selectable updated criteria

This commit is contained in:
Andrew Dolgov
2013-03-31 12:37:42 +04:00
parent bf1fee8347
commit c8b693cf7f
4 changed files with 117 additions and 69 deletions

View File

@@ -593,8 +593,9 @@ class RPC extends Handler_Protected {
function catchupFeed() {
$feed_id = db_escape_string($this->link, $_REQUEST['feed_id']);
$is_cat = db_escape_string($this->link, $_REQUEST['is_cat']) == "true";
$mode = db_escape_string($this->link, $_REQUEST['mode']);
catchup_feed($this->link, $feed_id, $is_cat, false);
catchup_feed($this->link, $feed_id, $is_cat, false, false, $mode);
print json_encode(array("message" => "UPDATE_COUNTERS"));
}