- Report::send(
- ObjectId::new(comment_view.comment.ap_id),
- &local_user_view.person.into(),
- ObjectId::new(comment_view.community.actor_id),
- reason.to_string(),
- context,
- )
- .await?;
+ // Email the admins
+ if local_site.reports_email_admins {
+ send_new_report_email_to_admins(
+ &comment_report_view.creator.name,
+ &comment_report_view.comment_creator.name,
+ &mut context.pool(),
+ context.settings(),
+ )
+ .await?;
+ }