sforkowany z mirror/friendica
Ensure pubkey key is present in APContact::getByUrl result
- Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-5687998662022.09-rc
rodzic
66e9f0e0da
commit
17c252f3c7
|
@ -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'));
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue