]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: set basic feed info if title is [Unknown] (fixes batch subscribe)
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Jul 2015 16:33:46 +0000 (19:33 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 4 Jul 2015 16:33:46 +0000 (19:33 +0300)
include/rssfuncs.php

index 7a3ea7402cf725a638150c954f8f77c511fd33dc..8797ee523077b57c1ead9652ce27eafd23a5fbba 100644 (file)
                _debug_suppress(!$debug_enabled);
                _debug("start", $debug_enabled);
 
+               $result = db_query("SELECT title FROM ttrss_feeds
+                       WHERE id = '$feed'");
+               $title = db_fetch_result($result, 0, "title");
+
+               // feed was batch-subscribed or something, we need to get basic info
+               // this is not optimal currently as it fetches stuff separately TODO: optimize
+               if ($title == "[Unknown]") {
+                       _debug("setting basic feed info for $feed...");
+                       set_basic_feed_info($feed);
+               }
+
                $result = db_query("SELECT id,update_interval,auth_login,
                        feed_url,auth_pass,cache_images,
                        mark_unread_on_update, owner_uid,