mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-09 02:24:46 +00:00
parent
8e19d55295
commit
f4eb8877a0
1 changed files with 6 additions and 4 deletions
|
@ -91,10 +91,12 @@ fn queries<'a>(
|
|||
ListMode::Banned => {
|
||||
query = query
|
||||
.filter(
|
||||
person::banned.eq(true).and(
|
||||
person::ban_expires
|
||||
.is_null()
|
||||
.or(person::ban_expires.gt(now().nullable())),
|
||||
person::local.eq(true).and(
|
||||
person::banned.eq(true).and(
|
||||
person::ban_expires
|
||||
.is_null()
|
||||
.or(person::ban_expires.gt(now().nullable())),
|
||||
),
|
||||
),
|
||||
)
|
||||
.filter(person::deleted.eq(false));
|
||||
|
|
Loading…
Reference in a new issue