mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing unread hashes on single feeds.
This commit is contained in:
parent
e7539e9a40
commit
dbe7fb3d86
1 changed files with 4 additions and 1 deletions
|
@ -583,7 +583,10 @@ def load_single_feed(request, feed_id):
|
|||
unread_story_hashes = []
|
||||
if stories:
|
||||
if (read_filter == 'all' or query) and usersub:
|
||||
unread_story_hashes = usersub.get_stories(read_filter='unread', limit=500, hashes_only=True,
|
||||
unread_story_hashes = UserSubscription.story_hashes(user.pk, read_filter='unread',
|
||||
feed_ids=[usersub.feed_id],
|
||||
usersubs=[usersub],
|
||||
group_by_feed=False,
|
||||
cutoff_date=user.profile.unread_cutoff)
|
||||
story_hashes = [story['story_hash'] for story in stories]
|
||||
starred_stories = MStarredStory.objects(user_id=user.pk,
|
||||
|
|
Loading…
Add table
Reference in a new issue