mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
By adding an entire minute on to the mark_as_read date, we are inadvertantly ignoring all read stories during that minute, which may lead to stories being shown as unread, when they are in fact read.
This commit is contained in:
parent
03981d8867
commit
c909e333b9
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class UserSubscription(models.Model):
|
|||
# Use the latest story to get last read time.
|
||||
if MStory.objects(story_feed_id=self.feed.pk).first():
|
||||
latest_story_date = MStory.objects(story_feed_id=self.feed.pk).order_by('-story_date').only('story_date')[0]['story_date']\
|
||||
+ datetime.timedelta(minutes=1)
|
||||
+ datetime.timedelta(seconds=1)
|
||||
else:
|
||||
latest_story_date = now
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue