improve meta filters

This commit is contained in:
ghost 2023-12-18 02:03:54 +02:00
parent 5474175163
commit a69e6de5e5

View File

@ -65,7 +65,7 @@ class RoomController extends AbstractController
foreach ((array) $client->kevaFilter($value['namespaceId']) as $post)
{
// Skip values with meta keys
if (false !== stripos($post['key'], '_KEVA_'))
if (str_starts_with($post['key'], '_'))
{
continue;
}
@ -181,7 +181,7 @@ class RoomController extends AbstractController
}
// Skip values with meta keys
if (false !== stripos($pending['key'], '_KEVA_'))
if (str_starts_with($pending['key'], '_'))
{
continue;
}
@ -215,7 +215,7 @@ class RoomController extends AbstractController
foreach ((array) $client->kevaFilter($request->get('namespace')) as $post)
{
// Skip values with meta keys
if (false !== stripos($post['key'], '_KEVA_'))
if (str_starts_with($post['key'], '_'))
{
continue;
}