mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Fixing unread hashes on single feeds.
This commit is contained in:
parent
6d7568a6e1
commit
a40931fd06
1 changed files with 4 additions and 1 deletions
|
@ -584,7 +584,10 @@ def load_single_feed(request, feed_id):
|
||||||
unread_story_hashes = []
|
unread_story_hashes = []
|
||||||
if stories:
|
if stories:
|
||||||
if (read_filter == 'all' or query) and usersub:
|
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)
|
cutoff_date=user.profile.unread_cutoff)
|
||||||
story_hashes = [story['story_hash'] for story in stories]
|
story_hashes = [story['story_hash'] for story in stories]
|
||||||
starred_stories = MStarredStory.objects(user_id=user.pk,
|
starred_stories = MStarredStory.objects(user_id=user.pk,
|
||||||
|
|
Loading…
Add table
Reference in a new issue