From b7d5b37ac9fe36c510b37ca77faf34f8e283b65f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 4 Jan 2023 09:58:11 -0500 Subject: [PATCH] Fix historical post fetching. Fixes #2640 (#2643) --- crates/db_schema/src/impls/post.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/db_schema/src/impls/post.rs b/crates/db_schema/src/impls/post.rs index 2a5264402..91e7bc1e3 100644 --- a/crates/db_schema/src/impls/post.rs +++ b/crates/db_schema/src/impls/post.rs @@ -82,8 +82,8 @@ impl Post { .filter(community_id.eq(the_community_id)) .filter(deleted.eq(false)) .filter(removed.eq(false)) - .then_order_by(published.desc()) .then_order_by(featured_community.desc()) + .then_order_by(published.desc()) .limit(FETCH_LIMIT_MAX) .load::(conn) .await