Update crates/db_views/src/report_combined_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
This commit is contained in:
Dessalines 2024-12-08 08:40:58 -05:00 committed by GitHub
parent 67d72e36ac
commit 165c7f4762
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,9 +79,9 @@ impl ReportCombinedViewInternal {
Some(my_person_id), Some(my_person_id),
post::community_id, post::community_id,
)) ))
.filter(post_report::resolved.eq(false)) .filter(post_report::resolved
.or_filter(comment_report::resolved.eq(false)) .or(comment_report::resolved)
.or_filter(private_message_report::resolved.eq(false)) .or(private_message_report::resolved).is_distinct_from(true))
.into_boxed(); .into_boxed();
if let Some(community_id) = community_id { if let Some(community_id) = community_id {