]> git.wh0rd.org Git - tt-rss.git/commitdiff
re-add ForceUpdate to viewfeed for update debugging, add some filter debugging
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 17 Jan 2011 21:32:48 +0000 (00:32 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 17 Jan 2011 21:32:48 +0000 (00:32 +0300)
functions.php
tt-rss.js

index 4737e60ee8ec14a48a46bb88c2f6e69ed3086891..64269aadac1ffb11bfbe84193e1b6a2c21919207 100644 (file)
 
                        $filters = load_filters($link, $feed, $owner_uid);
 
+                       if (defined('DAEMON_EXTENDED_DEBUG') || $_REQUEST['xdebug']) {
+                               print_r($filters);
+                       }
+
                        if ($use_simplepie) {
                                $iterator = $rss->get_items();
                        } else {
                        catchupArticlesById($link, $ids, $cmode);
                }
 
+               if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
+                       update_rss_feed($link, $feed, true);
+               }
+
                if ($subop == "MarkAllRead")  {
                        catchup_feed($link, $feed, $cat_view);
 
index 9c8f5590ae1cf464c8ef80599cdb038b0fad62db..4cb3ec56378fcba56ee46b2936a52183135ce0f9 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -836,7 +836,7 @@ function hotkey_handler(e) {
 
                        if (keycode == 82) { // r
                                if (getActiveFeedId()) {
-                                       viewfeed(getActiveFeedId(), "ForceUpdate", activeFeedIsCat());
+                                       viewfeed(getActiveFeedId(), '', activeFeedIsCat());
                                        return;
                                }
                        }
@@ -848,7 +848,7 @@ function hotkey_handler(e) {
 
                        if (keycode == 85) { // u
                                if (getActiveFeedId()) {
-                                       viewfeed(getActiveFeedId(), "ForceUpdate");
+                                       viewfeed(getActiveFeedId(), '');
                                        return false;
                                }
                        }