mirror of
https://github.com/friendica/friendica
synced 2024-11-18 07:43:51 +00:00
Storing the protocol while following a contact
This commit is contained in:
parent
74a25707e1
commit
b6000b3395
1 changed files with 4 additions and 5 deletions
|
@ -162,11 +162,8 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
||||||
$public_key = $res['pubkey'];
|
$public_key = $res['pubkey'];
|
||||||
|
|
||||||
// Save the private key. Send them the public key.
|
// Save the private key. Send them the public key.
|
||||||
q("UPDATE `contact` SET `prvkey` = '%s' WHERE `id` = %d AND `uid` = %d",
|
$fields = ['prvkey' => $private_key, 'protocol' => Protocol::DFRN];
|
||||||
DBA::escape($private_key),
|
DBA::update('contact', $fields, ['id' => $contact_id]);
|
||||||
intval($contact_id),
|
|
||||||
intval($uid)
|
|
||||||
);
|
|
||||||
|
|
||||||
$params = [];
|
$params = [];
|
||||||
|
|
||||||
|
@ -298,6 +295,8 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
||||||
if ($status != 0) {
|
if ($status != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
DBA::update('contact', ['protocol' => $network], ['id' => $contact_id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue