From: Andrew Dolgov Date: Tue, 11 Aug 2015 06:19:47 +0000 (+0300) Subject: queryfeedheadlines: only use disable_offsets hack in expanded mode X-Git-Tag: 16.3~180 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=209ebdc644985e63046c1612ee4b84c5e0e4dac3;p=tt-rss.git queryfeedheadlines: only use disable_offsets hack in expanded mode --- diff --git a/include/functions2.php b/include/functions2.php index 59f6caa8..03b65b7b 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) {