]> Untitled Git - lemmy.git/blobdiff - crates/db_views/src/comment_report_view.rs
Addressing slow profile queries. #2777 (#2830)
[lemmy.git] / crates / db_views / src / comment_report_view.rs
index df14ea5592032a98ba45f004e23f467e48610171..a5b8d71d4cb3f4ff870daed129abf11396fde54d 100644 (file)
@@ -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(