mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-18 05:10:34 +00:00
Adding a comment.
This commit is contained in:
parent
07c8f5348c
commit
d9df900c0b
|
@ -392,6 +392,8 @@ impl<'a> PostQuery<'a> {
|
|||
|
||||
query = match self.sort.unwrap_or(SortType::Hot) {
|
||||
SortType::Active => query
|
||||
// Hot ranks fade to zero after a few days, and this filter drastically reduces
|
||||
// the number of rows needed to be joined to.
|
||||
.filter(post_aggregates::hot_rank_active.gt(1))
|
||||
.then_order_by(post_aggregates::hot_rank_active.desc()),
|
||||
SortType::Hot => query
|
||||
|
|
Loading…
Reference in a new issue