X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_views%2Fsrc%2Fcomment_report_view.rs;h=a5b8d71d4cb3f4ff870daed129abf11396fde54d;hb=1b5437cbe3fe0b9726c5760c05f52054ab4e54c2;hp=df14ea5592032a98ba45f004e23f467e48610171;hpb=17527d0e7e8c9fd3cc16aa41c636432b7b6b5650;p=lemmy.git diff --git a/crates/db_views/src/comment_report_view.rs b/crates/db_views/src/comment_report_view.rs index df14ea55..a5b8d71d 100644 --- a/crates/db_views/src/comment_report_view.rs +++ b/crates/db_views/src/comment_report_view.rs @@ -62,12 +62,7 @@ impl CommentReportView { community_person_ban::table.on( community::id .eq(community_person_ban::community_id) - .and(community_person_ban::person_id.eq(comment::creator_id)) - .and( - community_person_ban::expires - .is_null() - .or(community_person_ban::expires.gt(now)), - ), + .and(community_person_ban::person_id.eq(comment::creator_id)), ), ) .left_join(