]> git.wh0rd.org Git - tt-rss.git/commitdiff
add workaround for fresh feed first id calculation issue
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Jul 2015 21:40:15 +0000 (00:40 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 12 Jul 2015 21:40:15 +0000 (00:40 +0300)
include/functions2.php

index 459a2a533b257261e7d1f3f0cc537c44f6d59ff5..e0b9e24adcc1013dcc2c3380d4c078bfa99d8619 100644 (file)
                                }
 
                                $first_id = 0;
+                               $first_id_query_strategy_part = $query_strategy_part;
+
+                               if ($feed == -3)
+                                       $first_id_query_strategy_part = "true";
+
                                // if previous topmost article id changed that means our current pagination is no longer valid
                                $query = "SELECT DISTINCT
                                                ttrss_feeds.title,
                                        $start_ts_query_part
                                        $filter_query_part
                                        $since_id_part
-                                       $query_strategy_part ORDER BY $order_by LIMIT 1";
+                                       $first_id_query_strategy_part ORDER BY $order_by LIMIT 1";
 
                                        if ($_REQUEST["debug"]) {
                                                print $query;