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