]> git.mxchange.org Git - friendica.git/commitdiff
issues with friendship again
authorFriendika <info@friendika.com>
Sun, 7 Nov 2010 05:56:39 +0000 (22:56 -0700)
committerFriendika <info@friendika.com>
Sun, 7 Nov 2010 05:56:39 +0000 (22:56 -0700)
mod/dfrn_confirm.php

index 4a5fe1114f50cf39a4f91b5875f4c0c75d836e10..fcfce90b977722c469dd5200ce4dc332bf1e1d12 100644 (file)
@@ -79,8 +79,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                $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.
@@ -231,7 +232,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
 
                $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))
@@ -265,7 +266,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                        $notify = '';
                        $poll   = '';
 
-                       // $contact['network'] !== 'dfrn'
+                       // $network !== 'dfrn'
 
                        $arr = lrdd($contact['url']);
                        if(count($arr)) {
@@ -282,6 +283,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                intval($uid)
                        );
 
+
                        $r = q("UPDATE `contact` SET `photo` = '%s', 
                                `thumb` = '%s',
                                `micro` = '%s', 
@@ -291,7 +293,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                `notify` = '%s',
                                `poll` = '%s',
                                `blocked` = 0, 
-                               `pending` = 0
+                               `pending` = 0,
+                               `network` = 'stat'
                                WHERE `id` = %d LIMIT 1
                        ",
                                dbesc($photos[0]),
@@ -455,6 +458,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                $r = q("UPDATE `contact` SET 
                        `photo` = '%s', 
                        `thumb` = '%s', 
+                       `micro` = '%s',
                        `rel` = %d, 
                        `name-date` = '%s', 
                        `uri-date` = '%s', 
@@ -466,6 +470,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                ",
                        dbesc($photos[0]),
                        dbesc($photos[1]),
+                       dbesc($photos[2]),
                        intval($new_relation),
                        dbesc(datetime_convert()),
                        dbesc(datetime_convert()),