No idea how long RSD (Really Simple Discovery) has been broken. I had no idea it was even here.
This commit is contained in:
@@ -1,29 +1,17 @@
|
||||
<?php
|
||||
namespace Zotlabs\Module;
|
||||
|
||||
// What do we need this for?
|
||||
|
||||
|
||||
class Rsd_xml extends \Zotlabs\Web\Controller {
|
||||
|
||||
function get() {
|
||||
function init() {
|
||||
header ("Content-Type: text/xml");
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
|
||||
<service>
|
||||
<engineName>Red</engineName>
|
||||
<engineLink>http://friendica.com/</engineLink>
|
||||
<apis>
|
||||
<api name="Twitter" preferred="true" apiLink="'.z_root().'/api/" blogID="">
|
||||
<settings>
|
||||
<docs>http://status.net/wiki/TwitterCompatibleAPI</docs>
|
||||
<setting name="OAuth">false</setting>
|
||||
</settings>
|
||||
</api>
|
||||
</apis>
|
||||
</service>
|
||||
</rsd>
|
||||
';
|
||||
die();
|
||||
echo replace_macros(get_markup_template('rsd.tpl'),array(
|
||||
'$project' => \Zotlabs\Project\System::get_platform_name(),
|
||||
'$baseurl' => z_root(),
|
||||
'$apipath' => z_root() . '/api/'
|
||||
));
|
||||
killme();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user