Don't add filtered/hidden posts to the unread count.

This commit is contained in:
Nicolas Stepien 2011-09-29 21:27:26 +02:00
parent 0bd570e375
commit 599b24e7f2
2 changed files with 2 additions and 2 deletions

View File

@ -2681,7 +2681,7 @@
return g.callbacks.push(unread.node); return g.callbacks.push(unread.node);
}, },
node: function(root) { node: function(root) {
if (root.className) { if (root.hidden || root.className) {
return; return;
} }
unread.replies.push(root); unread.replies.push(root);

View File

@ -1956,7 +1956,7 @@ unread =
g.callbacks.push unread.node g.callbacks.push unread.node
node: (root) -> node: (root) ->
return if root.className return if root.hidden or root.className
unread.replies.push root unread.replies.push root
unread.updateTitle() unread.updateTitle()
Favicon.update() Favicon.update()