]> Untitled Git - lemmy.git/blobdiff - crates/db_views_actor/src/community_view.rs
Adding hot_rank columns in place of function sorting. (#2952)
[lemmy.git] / crates / db_views_actor / src / community_view.rs
index 9d48f17d64501569d37d5a45056e4a7bd8252295..abab023a66ac7efa122000170a7c15bad9ce956b 100644 (file)
@@ -181,7 +181,7 @@ impl<'a> CommunityQuery<'a> {
       SortType::TopAll => query = query.order_by(community_aggregates::subscribers.desc()),
       SortType::TopMonth => query = query.order_by(community_aggregates::users_active_month.desc()),
       SortType::Hot => {
-        query = query.order_by(community_aggregates::users_active_month.desc());
+        query = query.order_by(community_aggregates::hot_rank.desc());
         // Don't show hidden communities in Hot (trending)
         query = query.filter(
           community::hidden