Fix historical post fetching. Fixes #2640 (#2643)

registration-post-approval
Dessalines 2023-01-04 09:58:11 -05:00 committed by GitHub
parent e567151ec3
commit b7d5b37ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,8 +82,8 @@ impl Post {
.filter(community_id.eq(the_community_id)) .filter(community_id.eq(the_community_id))
.filter(deleted.eq(false)) .filter(deleted.eq(false))
.filter(removed.eq(false)) .filter(removed.eq(false))
.then_order_by(published.desc())
.then_order_by(featured_community.desc()) .then_order_by(featured_community.desc())
.then_order_by(published.desc())
.limit(FETCH_LIMIT_MAX) .limit(FETCH_LIMIT_MAX)
.load::<Self>(conn) .load::<Self>(conn)
.await .await