From 17c252f3c770e32291ae3667d53dcd750d6f334a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 24 Dec 2019 15:37:35 -0500 Subject: [PATCH] Ensure pubkey key is present in APContact::getByUrl result - Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-568799866 --- src/Model/APContact.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Model/APContact.php b/src/Model/APContact.php index e3c3a0a12..c53503448 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -192,6 +192,7 @@ class APContact extends BaseObject $apcontact['addr'] = ''; } + $apcontact['pubkey'] = null; if (!empty($compacted['w3id:publicKey'])) { $apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted['w3id:publicKey'], 'w3id:publicKeyPem', '@value')); }