mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-31 22:20:12 +00:00
Fixing 'Next Unread' for river blurblogs.
This commit is contained in:
parent
4fc9693b36
commit
135ce37436
1 changed files with 6 additions and 1 deletions
|
@ -3442,7 +3442,7 @@
|
|||
}
|
||||
}
|
||||
return total;
|
||||
} else if (this.flags['river_view']) {
|
||||
} else if (this.flags['river_view'] && !this.flags['social_view']) {
|
||||
if (feed_id == 'river:') {
|
||||
$folder = this.$s.$feed_list;
|
||||
} else {
|
||||
|
@ -3450,6 +3450,11 @@
|
|||
}
|
||||
var counts = this.list_feeds_with_unreads_in_folder($folder, true, visible_only);
|
||||
return _.reduce(counts, function(m, c) { return m + c; }, 0);
|
||||
} else if (this.flags['river_view'] && this.flags['social_view']) {
|
||||
var unread_score = this.get_unread_view_score();
|
||||
return NEWSBLUR.assets.social_feeds.reduce(function(m, feed) {
|
||||
return m + feed.get('ps') + (unread_score >= 0 && feed.get('nt'));
|
||||
}, 0);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue