]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow the hostmeta to indirect from one domain to another.
authorJoshua Judson Rosen <rozzin@geekspace.com>
Tue, 19 Jun 2012 03:44:02 +0000 (23:44 -0400)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 29 Sep 2013 21:13:45 +0000 (23:13 +0200)
e.g.: rozzin@hackerposse.com => rozzin@status.hackerposse.com.

actions/hostmeta.php

index 5caf1960cbb1ae2970071ba62ff5df916230dc88..3d541543a2ba1318a5c80d5804cc06d2137f5079 100644 (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');