X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fimpls%2Fpost.rs;h=2a5264402115473e1c45b3d18bac528343903725;hb=9dfd819691676994ac52b000fc4f93dfe72bc2b3;hp=407a83f5369b660d57a1a013abc0ed18181888df;hpb=0ecf256ce32392b53b96a24ddd8f2e4e513281da;p=lemmy.git diff --git a/crates/db_schema/src/impls/post.rs b/crates/db_schema/src/impls/post.rs index 407a83f5..2a526440 100644 --- a/crates/db_schema/src/impls/post.rs +++ b/crates/db_schema/src/impls/post.rs @@ -6,11 +6,11 @@ use crate::{ community_id, creator_id, deleted, + featured_community, name, post, published, removed, - stickied, thumbnail_url, updated, url, @@ -83,7 +83,7 @@ impl Post { .filter(deleted.eq(false)) .filter(removed.eq(false)) .then_order_by(published.desc()) - .then_order_by(stickied.desc()) + .then_order_by(featured_community.desc()) .limit(FETCH_LIMIT_MAX) .load::(conn) .await @@ -381,7 +381,6 @@ mod tests { published: inserted_post.published, removed: false, locked: false, - stickied: false, nsfw: false, deleted: false, updated: None, @@ -392,6 +391,8 @@ mod tests { ap_id: inserted_post.ap_id.clone(), local: true, language_id: Default::default(), + featured_community: false, + featured_local: false, }; // Post Like