Use bump order when index sort type is unrecognized instead of throwing an error.
This commit is contained in:
parent
587c079a43
commit
6717a23f66
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user