mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-19 02:44:02 +00:00
Fixing trending
This commit is contained in:
parent
49b5667167
commit
6280c99862
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ impl CommunityView {
|
||||||
// The view lets you pass a null user_id, if you're not logged in
|
// The view lets you pass a null user_id, if you're not logged in
|
||||||
match sort {
|
match sort {
|
||||||
SortType::Hot => query = query.order_by(hot_rank.desc())
|
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()),
|
.filter(user_id.is_null()),
|
||||||
SortType::New => query = query.order_by(published.desc()).filter(user_id.is_null()),
|
SortType::New => query = query.order_by(published.desc()).filter(user_id.is_null()),
|
||||||
SortType::TopAll => {
|
SortType::TopAll => {
|
||||||
|
|
Loading…
Reference in a new issue