summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-08-11 09:19:47 +0300
committerAndrew Dolgov <[email protected]>2015-08-11 09:19:47 +0300
commit209ebdc644985e63046c1612ee4b84c5e0e4dac3 (patch)
tree5deb27c2b628ae95ec8c85f4f401cf59276f5a97 /include
parent231c672c5dacc9d2a0c5789da4ec5ebfe90aa22d (diff)
queryfeedheadlines: only use disable_offsets hack in expanded mode
Diffstat (limited to 'include')
-rw-r--r--include/functions2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 59f6caa88..03b65b7b1 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -506,7 +506,7 @@
if ($unread > 0) {
$view_query_part = " unread = true AND ";
- $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP");
+ $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP") && get_pref("CDM_EXPANDED");
}
}
}
@@ -525,7 +525,7 @@
if ($view_mode == "unread" && $feed != -6) {
$view_query_part = " unread = true AND ";
- $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP");
+ $disable_offsets = !$api_request && get_pref("CDM_AUTO_CATCHUP") && get_pref("CDM_EXPANDED");
}
if ($limit > 0) {