if pre-existing relationship, don't set duplex

This commit is contained in:
Friendika 2010-11-09 17:53:20 -08:00
parent 76b5e984e1
commit 70bcf000e3
1 changed files with 6 additions and 0 deletions

View File

@ -238,6 +238,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
if(($relation == REL_FAN) || ($duplex)) if(($relation == REL_FAN) || ($duplex))
$new_relation = REL_BUD; $new_relation = REL_BUD;
if(($relation == REL_FAN) && ($duplex))
$duplex = 0;
$r = q("UPDATE `contact` SET `photo` = '%s', $r = q("UPDATE `contact` SET `photo` = '%s',
`thumb` = '%s', `thumb` = '%s',
`micro` = '%s', `micro` = '%s',
@ -455,6 +458,9 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
if(($relation == REL_VIP) || ($duplex)) if(($relation == REL_VIP) || ($duplex))
$new_relation = REL_BUD; $new_relation = REL_BUD;
if(($relation == REL_VIP) && ($duplex))
$duplex = 0;
$r = q("UPDATE `contact` SET $r = q("UPDATE `contact` SET
`photo` = '%s', `photo` = '%s',
`thumb` = '%s', `thumb` = '%s',