diff options
author | friendica <info@friendica.com> | 2014-10-01 14:48:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-10-01 14:48:08 -0700 |
commit | 467c6c72f0a470173fd9b050137c37c4a59f6934 (patch) | |
tree | 342122297845288fb7fb665381096cc146c19b83 | |
parent | f19d718631675d38efca1741f46bf0916af72a65 (diff) | |
download | volse-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"
-rw-r--r-- | include/follow.php | 2 | ||||
-rw-r--r-- | include/identity.php | 11 | ||||
-rw-r--r-- | include/zot.php | 2 | ||||
-rw-r--r-- | version.inc | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/include/follow.php b/include/follow.php index a967386e9..c8bd3c500 100644 --- a/include/follow.php +++ b/include/follow.php @@ -84,7 +84,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) // Premium channel, set confirm before callback to avoid recursion - if(array_key_exists('connect_url',$j) && (! $confirm)) + if(array_key_exists('connect_url',$j) && ($interactive) && (! $confirm)) goaway(zid($j['connect_url'])); 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); diff --git a/include/zot.php b/include/zot.php index 828194c3a..3d59f00f3 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1674,8 +1674,6 @@ function process_location_delivery($sender,$arr,$deliveries) { logger('process_location_delivery: results: ' . print_r($x,true), LOGGER_DATA); } -// We need to merge this code with that in the import_xchan function so as to make it -// easier to maintain changes. function sync_locations($sender,$arr,$absolute = false) { diff --git a/version.inc b/version.inc index 2681a486b..c48866f12 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-09-30.814 +2014-10-01.815 |