diff options
author | Andrew Dolgov <[email protected]> | 2010-07-19 00:00:37 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-07-19 00:00:37 +0400 |
commit | ca75c2e2fd00ff81d6a74fe144b974e79addb8af (patch) | |
tree | 2e1d01c70c280c26ff7c8ef2b5cd3e5bfafba711 /api/index.php | |
parent | 8fd8b4b132b59a397d3e761a163e1bf1fcc03548 (diff) |
api: add catchupFeed
Diffstat (limited to 'api/index.php')
-rw-r--r-- | api/index.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php index 1faf9a9fd..c0bc79963 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))); |