Browse Source

skip records with meta keys

main
ghost 9 months ago
parent
commit
650f311caa
  1. 6
      src/Controller/RoomController.php

6
src/Controller/RoomController.php

@ -1113,6 +1113,12 @@ class RoomController extends AbstractController
return null; return null;
} }
// Skip values with meta keys
if (str_starts_with($data['key'], '_'))
{
return null;
}
// Legacy key format support (protocol v1 contain timestamp in prefix) // Legacy key format support (protocol v1 contain timestamp in prefix)
if (preg_match('/^([\d]+)@([A-z0-9\.\:\[\]]+)/', $data['key'], $matches)) if (preg_match('/^([\d]+)@([A-z0-9\.\:\[\]]+)/', $data['key'], $matches))
{ {

Loading…
Cancel
Save