In Last Long Reply order, if no visible reply meets threshold and there are omitted replies, sort by first visible reply.
This commit is contained in:
parent
f06be36805
commit
39b65a63fd
@ -812,7 +812,7 @@ Index =
|
|||||||
len = if r.com then Build.parseComment(r.com).replace(/[^a-z]/ig, '').length else 0
|
len = if r.com then Build.parseComment(r.com).replace(/[^a-z]/ig, '').length else 0
|
||||||
if len >= Index.lastLongThresholds[+!!r.ext]
|
if len >= Index.lastLongThresholds[+!!r.ext]
|
||||||
return r
|
return r
|
||||||
thread
|
if thread.omitted_posts then thread.last_replies[0] else thread
|
||||||
[liveThreadData...].sort((a, b) ->
|
[liveThreadData...].sort((a, b) ->
|
||||||
lastlong(b).no - lastlong(a).no
|
lastlong(b).no - lastlong(a).no
|
||||||
).map (post) -> post.no
|
).map (post) -> post.no
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user