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:
ccd0 2017-06-29 19:39:15 -07:00
parent f06be36805
commit 39b65a63fd

View File

@ -812,7 +812,7 @@ Index =
len = if r.com then Build.parseComment(r.com).replace(/[^a-z]/ig, '').length else 0
if len >= Index.lastLongThresholds[+!!r.ext]
return r
thread
if thread.omitted_posts then thread.last_replies[0] else thread
[liveThreadData...].sort((a, b) ->
lastlong(b).no - lastlong(a).no
).map (post) -> post.no