mirror of https://github.com/pixelfed/pixelfed.git
Merge pull request #4936 from pixelfed/staging
Update Inbox, cast live filters to lowercase
This commit is contained in:
commit
01a86009e6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue