mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Only active feeds count unreads.
This commit is contained in:
parent
3e68cfad61
commit
c41e4dba55
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ NEWSBLUR.Collections.Folders = Backbone.Collection.extend({
|
|||
unread_counts: function(sum_total, seen_feeds) {
|
||||
if (!seen_feeds) seen_feeds = [];
|
||||
var counts = this.reduce(function(counts, item) {
|
||||
if (item.is_feed() && !_.contains(seen_feeds, item.feed.id) && item.get('active')) {
|
||||
if (item.is_feed() && !_.contains(seen_feeds, item.feed.id) && item.feed.get('active')) {
|
||||
var feed_counts = item.feed.unread_counts();
|
||||
counts['ps'] += feed_counts['ps'];
|
||||
counts['nt'] += feed_counts['nt'];
|
||||
|
|
Loading…
Add table
Reference in a new issue