feat: add a remarks field on entities

This commit is contained in:
Maël Gangloff
2024-12-28 19:26:25 +01:00
parent c3c7de1902
commit ee4d117834
3 changed files with 51 additions and 0 deletions

View File

@@ -509,6 +509,10 @@ readonly class RDAPService
$entity->setHandle($rdapEntity['handle']);
if (array_key_exists('remarks', $rdapEntity) && is_array($rdapEntity['remarks'])) {
$entity->setRemarks($rdapEntity['remarks']);
}
if (array_key_exists('vcardArray', $rdapEntity) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) {
if (empty($entity->getJCard())) {
$entity->setJCard($rdapEntity['vcardArray']);