From c633e370ec9b98731dff95045ddb12ff4e53092f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Jan 2010 13:55:26 +0300 Subject: update_rss_feed: handle multiple feeds with the same URL at once --- api/index.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'api/index.php') diff --git a/api/index.php b/api/index.php index 60753e9ca..3064549bc 100644 --- a/api/index.php +++ b/api/index.php @@ -379,14 +379,7 @@ case "updateFeed": $feed_id = db_escape_string($_REQUEST["feed_id"]); - $result = db_query($link, - "SELECT feed_url FROM ttrss_feeds WHERE id = '$feed_id' - AND owner_uid = " . $_SESSION["uid"]); - - if (db_num_rows($result) > 0) { - $feed_url = db_fetch_result($result, 0, "feed_url"); - update_rss_feed($link, $feed_url, $feed_id); - } + update_rss_feed($link, $feed_id, true); print json_encode(array("status" => "OK")); -- cgit v1.2.3-54-g00ecf