Update Inbox, cast live filters to lowercase

This commit is contained in:
Daniel Supernault 2024-02-16 06:57:04 -07:00
parent 66f6640072
commit d835e0adaa
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1
2 changed files with 4 additions and 4 deletions

View file

@ -321,11 +321,11 @@ class Helpers {
$filters = array_map('trim', explode(',', $filters));
$content = $res['content'];
foreach($filters as $filter) {
$filter = trim($filter);
$filter = trim(strtolower($filter));
if(!$filter || !strlen($filter)) {
continue;
}
if(str_contains($content, $filter)) {
if(str_contains(strtolower($content), $filter)) {
return;
}
}

View file

@ -203,11 +203,11 @@ class Inbox
$filters = array_map('trim', explode(',', $filters));
$content = $activity['content'];
foreach($filters as $filter) {
$filter = trim($filter);
$filter = trim(strtolower($filter));
if(!$filter || !strlen($filter)) {
continue;
}
if(str_contains($content, $filter)) {
if(str_contains(strtolower($content), $filter)) {
return;
}
}