Un-expanding stickies only have 1 replies on the index.
This commit is contained in:
parent
ca265fc7a1
commit
7d9172d55d
@ -4835,15 +4835,19 @@
|
|||||||
a.textContent = text.replace('-', '+');
|
a.textContent = text.replace('-', '+');
|
||||||
ExpandComment.contract(thread.OP);
|
ExpandComment.contract(thread.OP);
|
||||||
num = (function() {
|
num = (function() {
|
||||||
switch (g.BOARD) {
|
if (thread.isSticky) {
|
||||||
case 'b':
|
return 1;
|
||||||
case 'vg':
|
} else {
|
||||||
case 'q':
|
switch (g.BOARD) {
|
||||||
return 3;
|
case 'b':
|
||||||
case 't':
|
case 'vg':
|
||||||
return 1;
|
case 'q':
|
||||||
default:
|
return 3;
|
||||||
return 5;
|
case 't':
|
||||||
|
return 1;
|
||||||
|
default:
|
||||||
|
return 5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);
|
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);
|
||||||
|
|||||||
@ -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