mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:35:55 +00:00
recently read: limit query by last_read
This commit is contained in:
@@ -608,9 +608,9 @@
|
|||||||
$query_strategy_part = "unread = false AND last_read IS NOT NULL";
|
$query_strategy_part = "unread = false AND last_read IS NOT NULL";
|
||||||
|
|
||||||
if (DB_TYPE == "pgsql") {
|
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 {
|
} 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,";
|
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
||||||
|
|||||||
Reference in New Issue
Block a user