aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-21 19:51:08 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-21 19:51:08 -0700
commit188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c (patch)
tree621153500aba341b1cee98e800fbea70d5132579 /mod/dfrn_confirm.php
parent399b6828f6888ff65d3ace22876c49f0887e88e6 (diff)
downloadvolse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.tar.gz
volse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.tar.bz2
volse-hubzilla-188dc1fcf8be7476ca912e3e0cd7aa6cef0c9e8c.zip
relationship direction was too confusing to work with. instead of "in,out,both" it's now declared by role e.g. "vip,fan,bud".
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index f1a744689..3a534fb6f 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -127,9 +127,9 @@ function dfrn_confirm_post(&$a) {
$thumb = $a->get_baseurl() . '/images/default-profile-sm.jpg';
}
- $new_relation = DIRECTION_OUT;
- if(($relation == DIRECTION_IN) || ($duplex))
- $new_relation = DIRECTION_BOTH;
+ $new_relation = REL_FAN;
+ if(($relation == REL_VIP) || ($duplex))
+ $new_relation = REL_BUD;
$r = q("UPDATE `contact` SET
`photo` = '%s',
@@ -362,9 +362,9 @@ function dfrn_confirm_post(&$a) {
$thumb = $a->get_baseurl() . '/images/default-profile-sm.jpg';
}
- $new_relation = DIRECTION_IN;
- if(($relation == DIRECTION_OUT) || ($duplex))
- $new_relation = DIRECTION_BOTH;
+ $new_relation = REL_VIP;
+ if(($relation == REL_FAN) || ($duplex))
+ $new_relation = REL_BUD;
$r = q("UPDATE `contact` SET `photo` = '%s',
`thumb` = '%s',