api: add catchupFeed

This commit is contained in:
Andrew Dolgov 2010-07-19 00:00:37 +04:00
parent 8fd8b4b132
commit ca75c2e2fd
1 changed files with 10 additions and 0 deletions

View File

@ -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)));