Allow the hostmeta to indirect from one domain to another.

e.g.: rozzin@hackerposse.com => rozzin@status.hackerposse.com.
This commit is contained in:
Joshua Judson Rosen 2012-06-18 23:44:02 -04:00 committed by Mikael Nordfeldth
parent 9844ec76e9
commit 90858804bc

View File

@ -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');