From 165c7f47628441c93794f8623f332517b7306295 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 8 Dec 2024 08:40:58 -0500 Subject: [PATCH] Update crates/db_views/src/report_combined_view.rs Co-authored-by: dullbananas --- crates/db_views/src/report_combined_view.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/db_views/src/report_combined_view.rs b/crates/db_views/src/report_combined_view.rs index 5944568e0..a61663b71 100644 --- a/crates/db_views/src/report_combined_view.rs +++ b/crates/db_views/src/report_combined_view.rs @@ -79,9 +79,9 @@ impl ReportCombinedViewInternal { Some(my_person_id), post::community_id, )) - .filter(post_report::resolved.eq(false)) - .or_filter(comment_report::resolved.eq(false)) - .or_filter(private_message_report::resolved.eq(false)) + .filter(post_report::resolved + .or(comment_report::resolved) + .or(private_message_report::resolved).is_distinct_from(true)) .into_boxed(); if let Some(community_id) = community_id {