mirror of
https://github.com/kevachat/webapp.git
synced 2025-09-04 10:03:06 +00:00
improve meta filters
This commit is contained in:
parent
5474175163
commit
a69e6de5e5
@ -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…
x
Reference in New Issue
Block a user