Ensure pubkey key is present in APContact::getByUrl result
- Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-568799866
This commit is contained in:
@@ -192,6 +192,7 @@ class APContact extends BaseObject
|
|||||||
$apcontact['addr'] = '';
|
$apcontact['addr'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$apcontact['pubkey'] = null;
|
||||||
if (!empty($compacted['w3id:publicKey'])) {
|
if (!empty($compacted['w3id:publicKey'])) {
|
||||||
$apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted['w3id:publicKey'], 'w3id:publicKeyPem', '@value'));
|
$apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted['w3id:publicKey'], 'w3id:publicKeyPem', '@value'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user