fix: phrase filter case sensitivity
This commit is contained in:
parent
46f8aea538
commit
7bfb113b1f
2 changed files with 2 additions and 2 deletions
|
@ -635,7 +635,7 @@
|
||||||
globalThis.transfer_ownership = async (uid) => {
|
globalThis.transfer_ownership = async (uid) => {
|
||||||
if (
|
if (
|
||||||
!(await trigger(\"atto::confirm\", [
|
!(await trigger(\"atto::confirm\", [
|
||||||
\"Are you sure you would like to do this?\n\nThis action is PERMANENT!\",
|
\"Are you sure you would like to do this?\\n\\nThis action is PERMANENT!\",
|
||||||
]))
|
]))
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -486,7 +486,7 @@ impl DataManager {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if post.content.contains(phrase) {
|
if post.content.to_lowercase().contains(&phrase.to_lowercase()) {
|
||||||
post.context.content_warning = "Contains muted phrase".to_string();
|
post.context.content_warning = "Contains muted phrase".to_string();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue