diff --git a/src/Socialbox/Managers/ContactManager.php b/src/Socialbox/Managers/ContactManager.php index 0ed6815..af0d26b 100644 --- a/src/Socialbox/Managers/ContactManager.php +++ b/src/Socialbox/Managers/ContactManager.php @@ -101,7 +101,7 @@ } $uuid = UuidV4::v4()->toRfc4122(); - Logger::getLogger()->debug(sprintf('Creating new contact (%s) for %s as UUID %s', $contactAddress, $peerUuid, $uuid)); + Logger::getLogger()->debug(sprintf('Creating new contact (%s) for %s with a relationship of %s as UUID %s', $contactAddress, $peerUuid, $relationship->value, $uuid)); try { diff --git a/src/Socialbox/SocialClient.php b/src/Socialbox/SocialClient.php index adbdf52..e86b298 100644 --- a/src/Socialbox/SocialClient.php +++ b/src/Socialbox/SocialClient.php @@ -212,7 +212,7 @@ return (bool)$this->sendRequest( new RpcRequest(StandardMethods::ADDRESS_BOOK_ADD_CONTACT, parameters: [ 'peer' => $peer, - 'relationship' => $relationship?->value + 'relationship' => $relationship ]) )->getResponse()->getResult(); }