Allow reports to be resolved, even if the community is deleted / removed.

Fixes #4344
fix_resolve_report
Dessalines 5 months ago
parent 2f3a7abe6b
commit dd9b71d418

@ -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?;

@ -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?;

Loading…
Cancel
Save