aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-24 14:55:39 -0800
committerzotlabs <mike@macgirvin.com>2017-11-24 14:55:39 -0800
commitfda5231a719025c0e2d7cc3954ebbab5b0d53586 (patch)
tree010ad3c43aaa5e5637e6ead7abbad681da32eca2 /include/follow.php
parent874cff1a873c306f4174b4910b02de5795a037ca (diff)
downloadvolse-hubzilla-fda5231a719025c0e2d7cc3954ebbab5b0d53586.tar.gz
volse-hubzilla-fda5231a719025c0e2d7cc3954ebbab5b0d53586.tar.bz2
volse-hubzilla-fda5231a719025c0e2d7cc3954ebbab5b0d53586.zip
default profile assign
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php
index 56d8294c5..0843802c5 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -226,6 +226,8 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
}
+ $profile_assign = get_pconfig($uid,'system','profile_assign','');
+
$r = q("select abook_id, abook_xchan, abook_pending, abook_instance from abook
where abook_xchan = '%s' and abook_channel = %d limit 1",
@@ -265,6 +267,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
'abook_channel' => intval($uid),
'abook_closeness' => intval($closeness),
'abook_xchan' => $xchan_hash,
+ 'abook_profile' => $profile_assign,
'abook_feed' => intval(($xchan['xchan_network'] === 'rss') ? 1 : 0),
'abook_created' => datetime_convert(),
'abook_updated' => datetime_convert(),