You've already forked AstralRinth
forked from didirus/AstralRinth
Fix issue with thread messages not being sent to moderators on non-processing projects (#705)
This commit is contained in:
committed by
GitHub
parent
2864abd8c2
commit
f65f949a36
@@ -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?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user