mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
This commit is contained in:
parent
99db3452e3
commit
0775c28854
7 changed files with 13 additions and 9 deletions
|
@ -13,6 +13,7 @@ use Friendica\Core\Hook;
|
|||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
function xmpp_install()
|
||||
|
@ -167,7 +168,7 @@ function xmpp_converse(App $a)
|
|||
PConfig::set(local_user(), "xmpp", "password", $password);
|
||||
}
|
||||
|
||||
$jid = $a->user["nickname"] . "@" . $a->getHostName() . "/converse-" . Strings::getRandomHex(5);
|
||||
$jid = $a->user["nickname"] . "@" . DI::baseUrl()->getHostname() . "/converse-" . Strings::getRandomHex(5);
|
||||
|
||||
$auto_login = "auto_login: true,
|
||||
authentication: 'login',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue