From: Brion Vibber Date: Fri, 8 Oct 2010 18:47:50 +0000 (-0700) Subject: Merge branch '0.9.x' into 1.0.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa02f6020e16f722d5194ad97e66a57ab1d8c29c;p=quix0rs-gnu-social.git Merge branch '0.9.x' into 1.0.x --- aa02f6020e16f722d5194ad97e66a57ab1d8c29c diff --cc actions/hostmeta.php index be73665f29,0000000000..b7beee5a86 mode 100644,000000..100644 --- a/actions/hostmeta.php +++ b/actions/hostmeta.php @@@ -1,58 -1,0 +1,60 @@@ +. + */ + +/** + * @category Action + * @package StatusNet + * @maintainer James Walker + * @author Craig Andrews + */ + - if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } ++if (!defined('STATUSNET')) { ++ exit(1); ++} + +class HostMetaAction extends Action +{ + + /** + * Is read only? + * + * @return boolean true + */ + function isReadOnly() + { + return true; + } + + function handle() + { + parent::handle(); + + $domain = common_config('site', 'server'); + + $xrd = new XRD(); + $xrd->host = $domain; + + if(Event::handle('StartHostMetaLinks', array(&$xrd->links))) { + Event::handle('EndHostMetaLinks', array(&$xrd->links)); + } + + header('Content-type: application/xrd+xml'); + print $xrd->toXML(); + } +}