Disregard your own posts in the unread count. Close #214.
This commit is contained in:
parent
f8913616c1
commit
06afb476e1
@ -1969,6 +1969,9 @@
|
||||
} else {
|
||||
qr.close();
|
||||
}
|
||||
if (g.REPLY && (conf['Unread Count'] || conf['Unread Favicon'])) {
|
||||
unread.foresee.push(postNumber);
|
||||
}
|
||||
if (g.REPLY && conf['Thread Updater'] && conf['Auto Update This']) {
|
||||
updater.update();
|
||||
}
|
||||
@ -3438,7 +3441,13 @@
|
||||
return g.callbacks.push(this.node);
|
||||
},
|
||||
replies: [],
|
||||
foresee: [],
|
||||
node: function(post) {
|
||||
var index;
|
||||
if ((index = unread.foresee.indexOf(post.id)) !== -1) {
|
||||
unread.foresee.splice(index, 1);
|
||||
return;
|
||||
}
|
||||
if (post.root.hidden || post["class"]) return;
|
||||
unread.replies.push(post.root);
|
||||
return unread.update();
|
||||
|
||||
@ -2,6 +2,7 @@ master
|
||||
- Mayhem
|
||||
General performance improvements.
|
||||
Threads will now be updated instantly after posting through the QR.
|
||||
Your own posts will not count toward the unread count after posting through the QR.
|
||||
- noface
|
||||
Add unique ID to filter.
|
||||
|
||||
|
||||
@ -1602,6 +1602,8 @@ qr =
|
||||
else
|
||||
qr.close()
|
||||
|
||||
if g.REPLY and (conf['Unread Count'] or conf['Unread Favicon'])
|
||||
unread.foresee.push postNumber
|
||||
if g.REPLY and conf['Thread Updater'] and conf['Auto Update This']
|
||||
updater.update()
|
||||
|
||||
@ -2785,8 +2787,12 @@ unread =
|
||||
g.callbacks.push @node
|
||||
|
||||
replies: []
|
||||
foresee: []
|
||||
|
||||
node: (post) ->
|
||||
if (index = unread.foresee.indexOf post.id) isnt -1
|
||||
unread.foresee.splice index, 1
|
||||
return
|
||||
return if post.root.hidden or post.class
|
||||
unread.replies.push post.root
|
||||
unread.update()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user