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('-', '+');
|
||||
ExpandComment.contract(thread.OP);
|
||||
num = (function() {
|
||||
switch (g.BOARD) {
|
||||
case 'b':
|
||||
case 'vg':
|
||||
case 'q':
|
||||
return 3;
|
||||
case 't':
|
||||
return 1;
|
||||
default:
|
||||
return 5;
|
||||
if (thread.isSticky) {
|
||||
return 1;
|
||||
} else {
|
||||
switch (g.BOARD) {
|
||||
case 'b':
|
||||
case 'vg':
|
||||
case 'q':
|
||||
return 3;
|
||||
case 't':
|
||||
return 1;
|
||||
default:
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
})();
|
||||
replies = $$('.thread > .replyContainer', threadRoot).slice(0, -num);
|
||||
|
||||
@ -3212,7 +3212,9 @@ ExpandThread =
|
||||
a.textContent = text.replace '-', '+'
|
||||
ExpandComment.contract thread.OP
|
||||
#goddamit moot
|
||||
num = switch g.BOARD
|
||||
num = if thread.isSticky
|
||||
1
|
||||
else switch g.BOARD
|
||||
# XXX boards config
|
||||
when 'b', 'vg', 'q' then 3
|
||||
when 't' then 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user