From 70bcf000e3662266df8683d57269a0b75af60330 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 9 Nov 2010 17:53:20 -0800 Subject: if pre-existing relationship, don't set duplex --- mod/dfrn_confirm.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 07a2f847b..fe9c04f85 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -238,6 +238,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) { if(($relation == REL_FAN) || ($duplex)) $new_relation = REL_BUD; + if(($relation == REL_FAN) && ($duplex)) + $duplex = 0; + $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s', @@ -455,6 +458,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) { if(($relation == REL_VIP) || ($duplex)) $new_relation = REL_BUD; + if(($relation == REL_VIP) && ($duplex)) + $duplex = 0; + $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', -- cgit v1.2.3