mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Don't risk incompatibilities
This commit is contained in:
parent
96d10c25e3
commit
7daa46503d
2 changed files with 5 additions and 2 deletions
|
@ -326,7 +326,7 @@ function dfrn_notify_content(App $a) {
|
|||
$pub_key = trim($importer['cpubkey']);
|
||||
$dplx = intval($importer['duplex']);
|
||||
|
||||
if (!empty($prv_key) && empty($pub_key)) {
|
||||
if (($dplx && strlen($prv_key)) || (strlen($prv_key) && !strlen($pub_key))) {
|
||||
openssl_private_encrypt($hash, $challenge, $prv_key);
|
||||
openssl_private_encrypt($id_str, $encrypted_id, $prv_key);
|
||||
} elseif (strlen($pub_key)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue