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:
Samuel Clay 2017-08-04 13:31:03 -07:00
parent 5572623825
commit d1e9571093

View file

@ -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 ''