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:
@@ -204,18 +204,6 @@ pub async fn user_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*username,
|
||||
None,
|
||||
None,
|
||||
Some(crate::database::models::ids::UserId::from(
|
||||
user_id,
|
||||
)),
|
||||
"User edited with inappropriate username".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
} else {
|
||||
return Err(ApiError::InvalidInput(format!(
|
||||
"Username {} is taken!",
|
||||
@@ -236,20 +224,6 @@ pub async fn user_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
if let Some(name) = name {
|
||||
crate::util::report::censor_check(
|
||||
&*name,
|
||||
None,
|
||||
None,
|
||||
Some(crate::database::models::ids::UserId::from(
|
||||
user_id,
|
||||
)),
|
||||
"User edited with inappropriate name".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(bio) = &new_user.bio {
|
||||
@@ -264,20 +238,6 @@ pub async fn user_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
if let Some(bio) = bio {
|
||||
crate::util::report::censor_check(
|
||||
&*bio,
|
||||
None,
|
||||
None,
|
||||
Some(crate::database::models::ids::UserId::from(
|
||||
user_id,
|
||||
)),
|
||||
"User edited with inappropriate bio".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(email) = &new_user.email {
|
||||
|
||||
Reference in New Issue
Block a user