fix: phrase filter case sensitivity

This commit is contained in:
trisua 2025-06-11 13:14:49 -04:00
parent 46f8aea538
commit 7bfb113b1f
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;
} }