From 90858804bc203478bb731be5a70b9110d1bfb0fc Mon Sep 17 00:00:00 2001 From: Joshua Judson Rosen Date: Mon, 18 Jun 2012 23:44:02 -0400 Subject: [PATCH] Allow the hostmeta to indirect from one domain to another. e.g.: rozzin@hackerposse.com => rozzin@status.hackerposse.com. --- actions/hostmeta.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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'); -- 2.39.5