1
1
Fork 0

Storing the protocol while following a contact

This commit is contained in:
Michael 2019-05-05 11:19:30 +00:00
parent 74a25707e1
commit b6000b3395

View file

@ -162,11 +162,8 @@ function dfrn_confirm_post(App $a, $handsfree = null)
$public_key = $res['pubkey'];
// Save the private key. Send them the public key.
q("UPDATE `contact` SET `prvkey` = '%s' WHERE `id` = %d AND `uid` = %d",
DBA::escape($private_key),
intval($contact_id),
intval($uid)
);
$fields = ['prvkey' => $private_key, 'protocol' => Protocol::DFRN];
DBA::update('contact', $fields, ['id' => $contact_id]);
$params = [];
@ -298,6 +295,8 @@ function dfrn_confirm_post(App $a, $handsfree = null)
if ($status != 0) {
return;
}
} else {
DBA::update('contact', ['protocol' => $network], ['id' => $contact_id]);
}
/*