mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 11:11:27 +00:00
Handle future pubDate
Posts with pubDate in the future always appear at the top, which is ruining the whole "newest at top" idea. One way to handle this is to use time() instead. This is what google reader does and seems reasonable.
This commit is contained in:
@@ -435,7 +435,7 @@
|
||||
|
||||
$entry_timestamp = strtotime($item->get_date());
|
||||
|
||||
if ($entry_timestamp == -1 || !$entry_timestamp) {
|
||||
if ($entry_timestamp == -1 || !$entry_timestamp || $entry_timestamp > time()) {
|
||||
$entry_timestamp = time();
|
||||
$no_orig_date = 'true';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user