$dfrn_confirm = $contact['confirm'];
$aes_allow = $contact['aes_allow'];
+ $network = ((strlen($contact['issued-id'])) ? 'dfrn' : 'stat');
- if($contact['network'] === 'dfrn') {
+ if($network === 'dfrn') {
// Generate a key pair for all further communications with this person.
// We have a keypair for every contact, and a site key for unknown people.
$photos = import_profile_photo($contact['photo'],$uid,$contact_id);
- if($contact['network'] === 'dfrn') {
+ if($network === 'dfrn') {
$new_relation = REL_VIP;
if(($relation == REL_FAN) || ($duplex))
$notify = '';
$poll = '';
- // $contact['network'] !== 'dfrn'
+ // $network !== 'dfrn'
$arr = lrdd($contact['url']);
if(count($arr)) {
intval($uid)
);
+
$r = q("UPDATE `contact` SET `photo` = '%s',
`thumb` = '%s',
`micro` = '%s',
`notify` = '%s',
`poll` = '%s',
`blocked` = 0,
- `pending` = 0
+ `pending` = 0,
+ `network` = 'stat'
WHERE `id` = %d LIMIT 1
",
dbesc($photos[0]),
$r = q("UPDATE `contact` SET
`photo` = '%s',
`thumb` = '%s',
+ `micro` = '%s',
`rel` = %d,
`name-date` = '%s',
`uri-date` = '%s',
",
dbesc($photos[0]),
dbesc($photos[1]),
+ dbesc($photos[2]),
intval($new_relation),
dbesc(datetime_convert()),
dbesc(datetime_convert()),