]> git.wh0rd.org Git - tt-rss.git/commitdiff
queryfeedheadlines: only use disable_offsets hack in expanded mode
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 06:19:47 +0000 (09:19 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 11 Aug 2015 06:19:47 +0000 (09:19 +0300)
include/functions2.php

index 59f6caa88b90e5719736b2a768d735e21c73cb10..03b65b7b1dca32e605c57644135974d9283bfcf1 100644 (file)
 
                                        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");
                                        }
                                }
                        }
 
                        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) {