From: Joshua Judson Rosen Date: Tue, 19 Jun 2012 03:44:02 +0000 (-0400) Subject: Allow the hostmeta to indirect from one domain to another. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=90858804bc203478bb731be5a70b9110d1bfb0fc;p=quix0rs-gnu-social.git Allow the hostmeta to indirect from one domain to another. e.g.: rozzin@hackerposse.com => rozzin@status.hackerposse.com. --- diff --git a/actions/hostmeta.php b/actions/hostmeta.php index 5caf1960cb..3d541543a2 100644 --- a/actions/hostmeta.php +++ b/actions/hostmeta.php @@ -45,10 +45,8 @@ class HostMetaAction extends Action { parent::handle(); - $domain = common_config('site', 'server'); - $xrd = new XRD(); - $xrd->host = $domain; + $xrd->host = strtolower($_SERVER['SERVER_NAME']); if(Event::handle('StartHostMetaLinks', array(&$xrd->links))) { $url = common_local_url('userxrd');