summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-07-03 18:58:24 -0700
committerDessalines <happydooby@gmail.com>2019-07-03 18:58:24 -0700
commit2a371251114462f28c201ea71bc5b603b0f6acd2 (patch)
tree710d6cffa57d2cd87af42d706498ac687a36d381
parent6f6e87fc61bb0fbb6c537af5123a21b60832c6bd (diff)
Fixing trending
-rw-r--r--server/src/db/community_view.rs2
1 files changed, 1 insertions, 1 deletions
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 => {