mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Future dated stories get forced to current date. This fixed multiple issues: makring as read on oldest first only marks stories older than current date as read. Also fixes issues with publishers gaming the dates.
This commit is contained in:
parent
5572623825
commit
d1e9571093
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ def pre_process_story(entry, encoding):
|
|||
if entry['published'] < datetime.datetime(2000, 1, 1):
|
||||
entry['published'] = datetime.datetime.utcnow()
|
||||
|
||||
if entry['published'] > datetime.datetime.now() + datetime.timedelta(days=1):
|
||||
# Future dated stories get forced to current date
|
||||
# if entry['published'] > datetime.datetime.now() + datetime.timedelta(days=1):
|
||||
if entry['published'] > datetime.datetime.now():
|
||||
entry['published'] = datetime.datetime.now()
|
||||
|
||||
# entry_link = entry.get('link') or ''
|
||||
|
|
Loading…
Add table
Reference in a new issue