Fixing broken river.

This commit is contained in:
Samuel Clay 2013-02-05 18:18:22 -08:00
parent ea69c65e50
commit facdb8db1c
2 changed files with 2 additions and 2 deletions

View file

@ -241,7 +241,7 @@ NEWSBLUR.Collections.Folders = Backbone.Collection.extend({
this.counts = counts;
if (sum_total) {
var unread_view = this.get_unread_view_name();
var unread_view = NEWSBLUR.reader.get_unread_view_name();
if (unread_view == 'positive') return counts['ps'];
if (unread_view == 'neutral') return counts['ps'] + counts['nt'];
if (unread_view == 'negative') return counts['ps'] + counts['nt'] + counts['ng'];

View file

@ -3605,7 +3605,7 @@
}
return total;
} else if (this.flags['river_view'] && !this.flags['social_view']) {
return this.active_folder.unread_counts(true);
return this.active_folder.folders.unread_counts(true);
} 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) {