use the get_hostname function rather than parse the url

This commit is contained in:
redmatrix 2016-07-11 18:59:54 -07:00
parent 17c3e12eab
commit 168d35747d

View File

@ -125,7 +125,7 @@ function change_channel($change_channel) {
);
if($x) {
$_SESSION['my_url'] = $x[0]['xchan_url'];
$_SESSION['my_address'] = $r[0]['channel_address'] . '@' . substr(z_root(), strpos(z_root(), '://') + 3);
$_SESSION['my_address'] = $r[0]['channel_address'] . '@' . App::get_hostname();
App::set_observer($x[0]);
App::set_perms(get_all_perms(local_channel(), $hash));