Browse Source

improve meta filters

main
ghost 11 months ago
parent
commit
a69e6de5e5
  1. 6
      src/Controller/RoomController.php

6
src/Controller/RoomController.php

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

Loading…
Cancel
Save