fix: phrase filter case sensitivity
This commit is contained in:
parent
46f8aea538
commit
7bfb113b1f
2 changed files with 2 additions and 2 deletions
|
@ -486,7 +486,7 @@ impl DataManager {
|
|||
continue;
|
||||
}
|
||||
|
||||
if post.content.contains(phrase) {
|
||||
if post.content.to_lowercase().contains(&phrase.to_lowercase()) {
|
||||
post.context.content_warning = "Contains muted phrase".to_string();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue