summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-01-18 00:32:48 +0300
committerAndrew Dolgov <[email protected]>2011-01-18 00:32:48 +0300
commit0569a7122c0b5431968473d89320cb8941daa0c1 (patch)
tree1f605c98b42c502097bde3db58c30c280574fdd6
parent08ac193a414a72fab13934fac0303714a5a38d40 (diff)
re-add ForceUpdate to viewfeed for update debugging, add some filter debugging
-rw-r--r--functions.php8
-rw-r--r--tt-rss.js4
2 files changed, 10 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 4737e60ee..64269aada 100644
--- a/functions.php
+++ b/functions.php
@@ -766,6 +766,10 @@
$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 {
@@ -4777,6 +4781,10 @@
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);
diff --git a/tt-rss.js b/tt-rss.js
index 9c8f5590a..4cb3ec563 100644
--- 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;
}
}