From 5f603985c02952eb62d0b8ef2d1b425fd6039d73 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 3 Jan 2024 04:31:03 -0500 Subject: [PATCH] Allow reports to be resolved, even if the community is deleted / removed. (#4345) Fixes #4344 --- crates/api/src/comment_report/resolve.rs | 2 +- crates/api/src/post_report/resolve.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api/src/comment_report/resolve.rs b/crates/api/src/comment_report/resolve.rs index 41ebe0d00..70e7d89f6 100644 --- a/crates/api/src/comment_report/resolve.rs +++ b/crates/api/src/comment_report/resolve.rs @@ -23,7 +23,7 @@ pub async fn resolve_comment_report( check_community_mod_action( &local_user_view.person, report.community.id, - false, + true, &mut context.pool(), ) .await?; diff --git a/crates/api/src/post_report/resolve.rs b/crates/api/src/post_report/resolve.rs index 3604055fd..ab6688012 100644 --- a/crates/api/src/post_report/resolve.rs +++ b/crates/api/src/post_report/resolve.rs @@ -23,7 +23,7 @@ pub async fn resolve_post_report( check_community_mod_action( &local_user_view.person, report.community.id, - false, + true, &mut context.pool(), ) .await?;