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