mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-26 06:20:20 +00:00
Exclude removed/deleted posts from community outbox (#2184)
This commit is contained in:
parent
589d952a95
commit
56b275acd4
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue