From 5a427dcee3ca9bce3fcb5de6a67292a405ee6736 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 21 Apr 2016 20:14:55 -0700 Subject: [PATCH] No idea how long RSD (Really Simple Discovery) has been broken. I had no idea it was even here. --- Zotlabs/Module/Rsd_xml.php | 30 +++++++++--------------------- view/tpl/head.tpl | 1 + view/tpl/rsd.tpl | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 view/tpl/rsd.tpl diff --git a/Zotlabs/Module/Rsd_xml.php b/Zotlabs/Module/Rsd_xml.php index 114ecc49b..06af39ad1 100644 --- a/Zotlabs/Module/Rsd_xml.php +++ b/Zotlabs/Module/Rsd_xml.php @@ -1,29 +1,17 @@ - - - Red - http://friendica.com/ - - - - http://status.net/wiki/TwitterCompatibleAPI - false - - - - - - '; - 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(); } + } + diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl index 9fcdf1735..9502dd91c 100755 --- a/view/tpl/head.tpl +++ b/view/tpl/head.tpl @@ -11,6 +11,7 @@ {{$head_js}} +