From 467c6c72f0a470173fd9b050137c37c4a59f6934 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 1 Oct 2014 14:48:08 -0700 Subject: ability to pre-populate connections for new channels. e.g. "MySpace Tom" --- include/identity.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index bfdd02682..2dbc251ce 100644 --- a/include/identity.php +++ b/include/identity.php @@ -166,7 +166,7 @@ function create_identity($arr) { $ret['message'] = t('No account identifier'); return $ret; } - $ret=identity_check_service_class($arr['account_id']); + $ret = identity_check_service_class($arr['account_id']); if (!$ret['success']) { return $ret; } @@ -389,6 +389,15 @@ function create_identity($arr) { } } + $accts = get_config('system','auto_follow'); + if($accts) { + if(! is_array($accts)) + $accts = array($accts); + foreach($accts as $acct) { + if(trim($acct)) + new_contact($newuid,trim($acct),$ret['channel'],false); + } + } call_hooks('register_account', $newuid); -- cgit v1.2.3