From a69e6de5e54b1ff881427eebb35a5015a8bd77b9 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 18 Dec 2023 02:03:54 +0200 Subject: [PATCH] improve meta filters --- src/Controller/RoomController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Controller/RoomController.php b/src/Controller/RoomController.php index 9ff7cb1..693bb9f 100644 --- a/src/Controller/RoomController.php +++ b/src/Controller/RoomController.php @@ -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; }