From ca75c2e2fd00ff81d6a74fe144b974e79addb8af Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Jul 2010 00:00:37 +0400 Subject: [PATCH] api: add catchupFeed --- api/index.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/index.php b/api/index.php index 1faf9a9f..c0bc7996 100644 --- a/api/index.php +++ b/api/index.php @@ -388,6 +388,16 @@ break; + case "catchupFeed": + $feed_id = db_escape_string($_REQUEST["feed_id"]); + $is_cat = db_escape_string($_REQUEST["category"]); + + catchup_feed($link, $feed, $is_cat); + + print json_encode(array("status" => "OK")); + + break; + case "getPref": $pref_name = db_escape_string($_REQUEST["pref_name"]); print json_encode(array("value" => get_pref($link, $pref_name))); -- 2.39.5