From 39b65a63fdd726704cd67ecee5b3d167c86f118d Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 29 Jun 2017 19:39:15 -0700 Subject: [PATCH] In Last Long Reply order, if no visible reply meets threshold and there are omitted replies, sort by first visible reply. --- src/General/Index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index e53426780..a0488bf3e 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -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