From: Dessalines Date: Thu, 4 Jul 2019 01:58:24 +0000 (-0700) Subject: Fixing trending X-Git-Url: http://these/git/?a=commitdiff_plain;h=6280c99862bf3c25bfed10c8c974bfba95859556;p=lemmy.git Fixing trending --- diff --git a/server/src/db/community_view.rs b/server/src/db/community_view.rs index d0dca738..33bf76bb 100644 --- a/server/src/db/community_view.rs +++ b/server/src/db/community_view.rs @@ -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 => {