Merge branch 'friendica:develop' into show_image_upload_limit
This commit is contained in:
commit
8f5d6fdf72
5 changed files with 14 additions and 8 deletions
|
@ -305,8 +305,8 @@ class APContact
|
|||
|
||||
$apcontact['pubkey'] = null;
|
||||
if (!empty($compacted['w3id:publicKey'])) {
|
||||
$apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted['w3id:publicKey'], 'w3id:publicKeyPem', '@value'));
|
||||
if (strstr($apcontact['pubkey'], 'RSA ')) {
|
||||
$apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted['w3id:publicKey'], 'w3id:publicKeyPem', '@value') ?? '');
|
||||
if (strpos($apcontact['pubkey'], 'RSA ') !== false) {
|
||||
$apcontact['pubkey'] = Crypto::rsaToPem($apcontact['pubkey']);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2271,6 +2271,11 @@ class Item
|
|||
return;
|
||||
}
|
||||
|
||||
$cdata = Contact::getPublicAndUserContactID($item['author-id'], $item['uid']);
|
||||
if (empty($cdata['user']) || ($cdata['user'] != $item['contact-id'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!DBA::exists('contact', ['id' => $item['contact-id'], 'remote_self' => Contact::MIRROR_NATIVE_RESHARE])) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue