]> git.mxchange.org Git - friendica.git/commitdiff
Ensure pubkey key is present in APContact::getByUrl result
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 20:37:35 +0000 (15:37 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 20:37:35 +0000 (15:37 -0500)
- Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-568799866

src/Model/APContact.php

index e3c3a0a12b2f09fc51c7ca403e6f2c4ac91a0c65..c535034487c2946a7e61d9be573280af5655f7c0 100644 (file)
@@ -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'));
                }