Un-expanding stickies only have 1 replies on the index.
This commit is contained in:
parent
ca265fc7a1
commit
7d9172d55d
@ -4835,6 +4835,9 @@
|
|||||||
a.textContent = text.replace('-', '+');
|
a.textContent = text.replace('-', '+');
|
||||||
ExpandComment.contract(thread.OP);
|
ExpandComment.contract(thread.OP);
|
||||||
num = (function() {
|
num = (function() {
|
||||||
|
if (thread.isSticky) {
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
switch (g.BOARD) {
|
switch (g.BOARD) {
|
||||||
case 'b':
|
case 'b':
|
||||||
case 'vg':
|
case 'vg':
|
||||||
@ -4845,6 +4848,7 @@
|
|||||||
default:
|
default:
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);
|
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);
|
||||||
for (_i = 0, _len = replies.length; _i < _len; _i++) {
|
for (_i = 0, _len = replies.length; _i < _len; _i++) {
|
||||||
|
|||||||
@ -3212,7 +3212,9 @@ ExpandThread =
|
|||||||
a.textContent = text.replace '-', '+'
|
a.textContent = text.replace '-', '+'
|
||||||
ExpandComment.contract thread.OP
|
ExpandComment.contract thread.OP
|
||||||
#goddamit moot
|
#goddamit moot
|
||||||
num = switch g.BOARD
|
num = if thread.isSticky
|
||||||
|
1
|
||||||
|
else switch g.BOARD
|
||||||
# XXX boards config
|
# XXX boards config
|
||||||
when 'b', 'vg', 'q' then 3
|
when 'b', 'vg', 'q' then 3
|
||||||
when 't' then 1
|
when 't' then 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user