diff options
author | Andrew Dolgov <[email protected]> | 2015-07-13 00:40:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-13 00:40:15 +0300 |
commit | f56e5a35041878b5ec827e96ce3ac78a0df944c8 (patch) | |
tree | 1b802228f0430f1e842a229fcf65a82917c4c641 | |
parent | f7fd1edb76fcb3b56ef4d327f8851484e782a1f8 (diff) |
add workaround for fresh feed first id calculation issue
-rw-r--r-- | include/functions2.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/functions2.php b/include/functions2.php index 459a2a533..e0b9e24ad 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -730,6 +730,11 @@ } $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, @@ -753,7 +758,7 @@ $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; |