aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-01 14:48:08 -0700
committerfriendica <info@friendica.com>2014-10-01 14:48:08 -0700
commit467c6c72f0a470173fd9b050137c37c4a59f6934 (patch)
tree342122297845288fb7fb665381096cc146c19b83 /include/identity.php
parentf19d718631675d38efca1741f46bf0916af72a65 (diff)
downloadvolse-hubzilla-467c6c72f0a470173fd9b050137c37c4a59f6934.tar.gz
volse-hubzilla-467c6c72f0a470173fd9b050137c37c4a59f6934.tar.bz2
volse-hubzilla-467c6c72f0a470173fd9b050137c37c4a59f6934.zip
ability to pre-populate connections for new channels. e.g. "MySpace Tom"
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php11
1 files changed, 10 insertions, 1 deletions
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);