From aad8d8f1e09d42e2af667696b3cb60b16a3dd4fe Mon Sep 17 00:00:00 2001 From: swaggboi Date: Wed, 17 Aug 2022 10:53:09 -0400 Subject: [PATCH] Should be using `bump_date` for sorting --- lib/PostText/Model/Thread.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 36a3c44..ccb4b82 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -37,7 +37,7 @@ sub get_all_threads($self) { thread_body AS body FROM threads WHERE NOT hidden_status - ORDER BY thread_date DESC; + ORDER BY bump_date DESC; END_SQL } @@ -53,7 +53,7 @@ sub get_threads_by_page($self, $this_page = 1) { thread_body AS body FROM threads WHERE NOT hidden_status - ORDER BY thread_date DESC + ORDER BY bump_date DESC LIMIT ? OFFSET ?; END_SQL }