mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
subscribe_to_feed: stop fetching URL multiple times while subscribing, various other speedups
This commit is contained in:
@@ -553,7 +553,7 @@ class Handler_Public extends Handler {
|
||||
break;
|
||||
case 4:
|
||||
print_notice(__("Multiple feed URLs found."));
|
||||
$feed_urls = get_feeds_from_html($feed_url);
|
||||
$feed_urls = $rc["feeds"];
|
||||
break;
|
||||
case 5:
|
||||
print_error(T_sprintf("Could not subscribe to <b>%s</b>.<br>Can't download the Feed URL.", $feed_url));
|
||||
|
||||
@@ -195,12 +195,6 @@ class RPC extends Handler_Protected {
|
||||
print json_encode(array("result" => $rc));
|
||||
}
|
||||
|
||||
function extractfeedurls() {
|
||||
$urls = get_feeds_from_html($_REQUEST['url']);
|
||||
|
||||
print json_encode(array("urls" => $urls));
|
||||
}
|
||||
|
||||
function togglepref() {
|
||||
$key = db_escape_string($_REQUEST["key"]);
|
||||
set_pref($this->link, $key, !get_pref($this->link, $key));
|
||||
|
||||
Reference in New Issue
Block a user