[various] Use new centralized admin account retrieval methods
This commit is contained in:
parent
a5768ce402
commit
fada358607
2 changed files with 9 additions and 7 deletions
|
@ -99,10 +99,10 @@ function pumpio_registerclient(App $a, $host)
|
|||
$application_name = DI::baseUrl()->getHostname();
|
||||
}
|
||||
|
||||
$adminlist = explode(',', str_replace(' ', '', DI::config()->get('config', 'admin_email')));
|
||||
$firstAdmin = User::getFirstAdmin(['email']);
|
||||
|
||||
$params['type'] = 'client_associate';
|
||||
$params['contacts'] = $adminlist[0];
|
||||
$params['contacts'] = $firstAdmin['email'];
|
||||
$params['application_type'] = 'native';
|
||||
$params['application_name'] = $application_name;
|
||||
$params['logo_url'] = DI::baseUrl()->get() . '/images/friendica-256.png';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue