summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-11-21 22:20:00 +0300
committerAndrew Dolgov <[email protected]>2015-11-21 22:20:00 +0300
commit19e47ad60bc390b52cfe1545a6d401545e6568a5 (patch)
treed997e1a09810d4bee5e303610bf4366955763cb5 /include
parentaa03bac42490673b4cd027c779655a027b1dd0fc (diff)
queryFeedHeadlines: don't check first_id when sorting by oldest first
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 779688716..0386b52ed 100755
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -465,6 +465,7 @@
$override_vfeed = isset($params["override_vfeed"]) ? $params["override_vfeed"] : false;
$start_ts = isset($params["start_ts"]) ? $params["start_ts"] : false;
$check_first_id = isset($params["check_first_id"]) ? $params["check_first_id"] : false;
+ $skip_first_id_check = isset($params["skip_first_id_check"]) ? $params["skip_first_id_check"] : false;
$ext_tables_part = "";
$query_strategy_part = "";
@@ -731,7 +732,7 @@
$sanity_interval_qpart = "date_entered >= DATE_SUB(NOW(), INTERVAL 1 hour) AND";
}
- if (!$search) {
+ if (!$search && !$skip_first_id_check) {
// if previous topmost article id changed that means our current pagination is no longer valid
$query = "SELECT DISTINCT
ttrss_feeds.title,