From: Dessalines Date: Wed, 4 Jan 2023 14:58:11 +0000 (-0500) Subject: Fix historical post fetching. Fixes #2640 (#2643) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/static/%7Bpost.url%7D?a=commitdiff_plain;h=b7d5b37ac9fe36c510b37ca77faf34f8e283b65f;p=lemmy.git Fix historical post fetching. Fixes #2640 (#2643) --- diff --git a/crates/db_schema/src/impls/post.rs b/crates/db_schema/src/impls/post.rs index 2a526440..91e7bc1e 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