]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: add catchupFeed
authorAndrew Dolgov <fox@bah.org.ru>
Sun, 18 Jul 2010 20:00:37 +0000 (00:00 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Sun, 18 Jul 2010 20:00:37 +0000 (00:00 +0400)
api/index.php

index 1faf9a9fd8cfbffaaa26e0e8db5ccfade4926252..c0bc79963ee1417ce6c42591bd6df816184948c7 100644 (file)
 
                        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)));