Allow reports to be resolved, even if the community is deleted / removed. (#4345)

Fixes #4344
This commit is contained in:
Dessalines 2024-01-03 04:31:03 -05:00 committed by GitHub
parent 2f3a7abe6b
commit 5f603985c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ pub async fn resolve_comment_report(
check_community_mod_action( check_community_mod_action(
&local_user_view.person, &local_user_view.person,
report.community.id, report.community.id,
false, true,
&mut context.pool(), &mut context.pool(),
) )
.await?; .await?;

View file

@ -23,7 +23,7 @@ pub async fn resolve_post_report(
check_community_mod_action( check_community_mod_action(
&local_user_view.person, &local_user_view.person,
report.community.id, report.community.id,
false, true,
&mut context.pool(), &mut context.pool(),
) )
.await?; .await?;