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:
@@ -387,16 +387,6 @@ pub async fn project_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*title,
|
||||
Some(project_item.inner.id),
|
||||
None,
|
||||
None,
|
||||
"Project edited with inappropriate title".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if let Some(description) = &new_project.description {
|
||||
@@ -418,16 +408,6 @@ pub async fn project_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*description,
|
||||
Some(project_item.inner.id),
|
||||
None,
|
||||
None,
|
||||
"Project edited with inappropriate description".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if let Some(status) = &new_project.status {
|
||||
@@ -699,16 +679,6 @@ pub async fn project_edit(
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*slug,
|
||||
Some(project_item.inner.id),
|
||||
None,
|
||||
None,
|
||||
"Project edited with inappropriate slug".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
sqlx::query!(
|
||||
@@ -921,16 +891,6 @@ pub async fn project_edit(
|
||||
)
|
||||
.execute(&mut *transaction)
|
||||
.await?;
|
||||
|
||||
crate::util::report::censor_check(
|
||||
&*body,
|
||||
Some(project_item.inner.id),
|
||||
None,
|
||||
None,
|
||||
"Project edited with inappropriate body".to_string(),
|
||||
&mut transaction,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
transaction.commit().await?;
|
||||
|
||||
Reference in New Issue
Block a user