summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-09-15 12:33:58 +0300
committerAndrew Dolgov <[email protected]>2015-09-15 12:33:58 +0300
commit94b8ce6cec3cdc8548cdfa7d1cd0d5d06a518886 (patch)
treea0fe20d31c85b33444076830772378b4d54aa673 /include
parent6b860bd9d25ef69daded8435f7991d64974b6cc1 (diff)
queryfeedheadlines: remove disable_offsets hack
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/functions2.php b/include/functions2.php
index fb8a6a3d0..bd1f9b860 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -465,7 +465,6 @@
$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;
- $api_request = isset($params["api_request"]) ? $params["api_request"] : false;
$ext_tables_part = "";
$query_strategy_part = "";
@@ -494,7 +493,6 @@
}
$view_query_part = "";
- $disable_offsets = false;
if ($view_mode == "adaptive") {
if ($search) {
@@ -508,7 +506,6 @@
if ($unread > 0) {
$view_query_part = " unread = true AND ";
- $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP") && get_pref("CDM_EXPANDED");
}
}
}
@@ -527,7 +524,6 @@
if ($view_mode == "unread" && $feed != -6) {
$view_query_part = " unread = true AND ";
- $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP") && get_pref("CDM_EXPANDED");
}
if ($limit > 0) {
@@ -735,7 +731,7 @@
$sanity_interval_qpart = "date_entered >= DATE_SUB(NOW(), INTERVAL 1 hour) AND";
}
- if (!$search && !$disable_offsets) {
+ if (!$search) {
// if previous topmost article id changed that means our current pagination is no longer valid
$query = "SELECT DISTINCT
ttrss_feeds.title,
@@ -775,10 +771,6 @@
}
}
- if ($disable_offsets) {
- $offset_query_part = "";
- }
-
$query = "SELECT DISTINCT
date_entered,
guid,