mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 10:41:29 +00:00
limit recently read feed to 1 day of read headlines
This commit is contained in:
@@ -604,6 +604,13 @@
|
|||||||
}
|
}
|
||||||
} else if ($feed == -6) { // recently read
|
} else if ($feed == -6) { // recently read
|
||||||
$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") {
|
||||||
|
$query_strategy_part .= " AND date_entered > NOW() - INTERVAL '1 DAY' ";
|
||||||
|
} else {
|
||||||
|
$query_strategy_part .= " AND date_entered > DATE_SUB(NOW(), INTERVAL 1 DAY) ";
|
||||||
|
}
|
||||||
|
|
||||||
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
||||||
$allow_archived = true;
|
$allow_archived = true;
|
||||||
$ignore_vfeed_group = true;
|
$ignore_vfeed_group = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user