mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fixing trending
This commit is contained in:
parent
b157e59a4d
commit
1691b6ad58
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user