Skip to content

Commit

Permalink
Merge pull request #252 from LemmyNet/main
Browse files Browse the repository at this point in the history
[pull] master from LemmyNet:main
  • Loading branch information
pull[bot] authored Jan 28, 2025
2 parents 98ee104 + f4eb887 commit ae65abf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/db_views/src/person/person_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ae65abf

Please sign in to comment.