From: Andrew Dolgov Date: Sun, 13 Sep 2015 12:59:21 +0000 (+0300) Subject: recently read: limit query by last_read X-Git-Tag: 16.3~112 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6b860bd9d25ef69daded8435f7991d64974b6cc1;p=tt-rss.git recently read: limit query by last_read --- diff --git a/include/functions2.php b/include/functions2.php index a135049a..fb8a6a3d 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -608,9 +608,9 @@ $query_strategy_part = "unread = false AND last_read IS NOT NULL"; if (DB_TYPE == "pgsql") { - $query_strategy_part .= " AND date_entered > NOW() - INTERVAL '1 DAY' "; + $query_strategy_part .= " AND last_read > NOW() - INTERVAL '1 DAY' "; } else { - $query_strategy_part .= " AND date_entered > DATE_SUB(NOW(), INTERVAL 1 DAY) "; + $query_strategy_part .= " AND last_read > DATE_SUB(NOW(), INTERVAL 1 DAY) "; } $vfeed_query_part = "ttrss_feeds.title AS feed_title,";