From 6717a23f660f082b06c51766bcb9877dd25611d3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 30 Oct 2016 10:58:55 -0700 Subject: [PATCH] Use bump order when index sort type is unrecognized instead of throwing an error. --- src/General/Index.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 155ea87ab..6eeda43a3 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -763,6 +763,7 @@ Index = when 'birth' then [liveThreadIDs... ].sort (a, b) -> b - a when 'replycount' then [liveThreadData...].sort((a, b) -> b.replies - a.replies).map (post) -> post.no when 'filecount' then [liveThreadData...].sort((a, b) -> b.images - a.images ).map (post) -> post.no + else liveThreadIDs if Index.search and (threadIDs = Index.querySearch Index.search) Index.sortedThreadIDs = threadIDs # Sticky threads