1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:05:55 +00:00

update_rss_feed: handle multiple feeds with the same URL at once

This commit is contained in:
Andrew Dolgov
2010-01-20 13:55:26 +03:00
parent 6e4f0519b7
commit c633e370ec
3 changed files with 71 additions and 57 deletions

View File

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