From: Nutomic Date: Fri, 1 Apr 2022 18:18:25 +0000 (+0000) Subject: Exclude removed/deleted posts from community outbox (#2184) X-Git-Url: http://these/git/%22https:/nerdica.net/%7Biframely.url%7D?a=commitdiff_plain;h=56b275acd43216e9d27248a55d4d01f6abd60920;p=lemmy.git Exclude removed/deleted posts from community outbox (#2184) --- diff --git a/crates/db_schema/src/impls/post.rs b/crates/db_schema/src/impls/post.rs index c1f0fcbf..9a8bbcec 100644 --- a/crates/db_schema/src/impls/post.rs +++ b/crates/db_schema/src/impls/post.rs @@ -50,6 +50,8 @@ impl Post { use crate::schema::post::dsl::*; post .filter(community_id.eq(the_community_id)) + .filter(deleted.eq(false)) + .filter(removed.eq(false)) .then_order_by(published.desc()) .then_order_by(stickied.desc()) .limit(20)