From 1691b6ad58ceb68e0cd5217c577d8fc333b41889 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 3 Jul 2019 18:58:24 -0700 Subject: [PATCH] Fixing trending --- server/src/db/community_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/db/community_view.rs b/server/src/db/community_view.rs index d0dca738e..33bf76bbb 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 => {