Fix issue with thread messages not being sent to moderators on non-processing projects (#705)

This commit is contained in:
Emma Alexia Triphora
2023-09-15 15:39:03 -04:00
committed by GitHub
parent 2864abd8c2
commit f65f949a36

View File

@@ -412,11 +412,9 @@ pub async fn thread_send_message(
) )
.await?; .await?;
} }
project.inner.status == ProjectStatus::Processing && !user.role.is_mod()
} else {
!user.role.is_mod()
} }
!user.role.is_mod()
} else if let Some(report_id) = thread.report_id { } else if let Some(report_id) = thread.report_id {
let report = database::models::report_item::Report::get(report_id, &**pool).await?; let report = database::models::report_item::Report::get(report_id, &**pool).await?;