]> Untitled Git - lemmy.git/commitdiff
Fixing trending
authorDessalines <tyhou13@gmx.com>
Thu, 4 Jul 2019 01:58:24 +0000 (18:58 -0700)
committerDessalines <tyhou13@gmx.com>
Thu, 4 Jul 2019 01:58:24 +0000 (18:58 -0700)
server/src/db/community_view.rs

index d0dca738e80b5b9b6ac79aa53694d2aeb8f75c6a..33bf76bbba95d2697ac7e7b8957d497ddecfb862 100644 (file)
@@ -126,7 +126,7 @@ impl CommunityView {
     // The view lets you pass a null user_id, if you're not logged in
     match sort {
       SortType::Hot => query = query.order_by(hot_rank.desc())
-        .then_order_by(published.desc())
+        .then_order_by(number_of_subscribers.desc())
         .filter(user_id.is_null()),
       SortType::New => query = query.order_by(published.desc()).filter(user_id.is_null()),
       SortType::TopAll => {