You've already forked AstralRinth
forked from didirus/AstralRinth
Revert "Add auto-reporting inappropriate text content" (#397)
* Revert "Add auto-reporting inappropriate text content (#387)"
This reverts commit 68f7dc9512.
* Maybe don't revert the whole thing
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use super::ApiError;
|
||||
use crate::database;
|
||||
use crate::database::models::VersionId;
|
||||
use crate::models;
|
||||
use crate::models::projects::{Dependency, Version};
|
||||
use crate::models::teams::Permissions;
|
||||
@@ -248,16 +247,6 @@ pub async fn version_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*name,
|
||||
None,
|
||||
Some(VersionId::from(version_id)),
|
||||
None,
|
||||
"Version edited with inappropriate name".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if let Some(number) = &new_version.version_number {
|
||||
@@ -474,16 +463,6 @@ pub async fn version_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*body,
|
||||
None,
|
||||
Some(VersionId::from(version_id)),
|
||||
None,
|
||||
"Version edited with inappropriate changelog".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if let Some(downloads) = &new_version.downloads {
|
||||
|
||||
Reference in New Issue
Block a user