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 | <?php | ||||||
| namespace Zotlabs\Module; | namespace Zotlabs\Module; | ||||||
|  |  | ||||||
| // What do we need this for? |  | ||||||
|  |  | ||||||
|  |  | ||||||
| class Rsd_xml extends \Zotlabs\Web\Controller { | class Rsd_xml extends \Zotlabs\Web\Controller { | ||||||
|  |  | ||||||
| 	function get() { | 	function init() { | ||||||
| 		header ("Content-Type: text/xml"); | 		header ("Content-Type: text/xml"); | ||||||
| 		echo '<?xml version="1.0" encoding="UTF-8"?> | 		echo replace_macros(get_markup_template('rsd.tpl'),array( | ||||||
| 	 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> | 			'$project' => \Zotlabs\Project\System::get_platform_name(), | ||||||
| 	   <service> | 			'$baseurl' => z_root(), | ||||||
| 	     <engineName>Red</engineName> | 			'$apipath' => z_root() . '/api/' | ||||||
| 	     <engineLink>http://friendica.com/</engineLink> | 		)); | ||||||
| 	     <apis> | 		killme(); | ||||||
| 	       <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(); |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -11,6 +11,7 @@ | |||||||
| {{$head_js}} | {{$head_js}} | ||||||
| <link rel="shortcut icon" href="{{$icon}}" /> | <link rel="shortcut icon" href="{{$icon}}" /> | ||||||
| <link rel="search" href="{{$baseurl}}/opensearch" type="application/opensearchdescription+xml" title="{{$osearch}}" /> | <link rel="search" href="{{$baseurl}}/opensearch" type="application/opensearchdescription+xml" title="{{$osearch}}" /> | ||||||
|  | <link rel="EditURI" type="application/rsd+xml" href="{{$baseurl}}/rsd.xml" /> | ||||||
| <script> | <script> | ||||||
| 	var updateInterval = {{$update_interval}}; | 	var updateInterval = {{$update_interval}}; | ||||||
| 	var localUser = {{if $local_channel}}{{$local_channel}}{{else}}false{{/if}}; | 	var localUser = {{if $local_channel}}{{$local_channel}}{{else}}false{{/if}}; | ||||||
|   | |||||||
							
								
								
									
										15
									
								
								view/tpl/rsd.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								view/tpl/rsd.tpl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> | ||||||
|  | 	<service> | ||||||
|  | 		<engineName>{{$project}}</engineName> | ||||||
|  | 		<engineLink>{{$baseurl}}</engineLink> | ||||||
|  | 		<apis> | ||||||
|  | 			<api name="Twitter" preferred="true" apiLink="{{$apipath}}" blogID=""> | ||||||
|  | 				<settings> | ||||||
|  | 					<docs>http://status.net/wiki/TwitterCompatibleAPI</docs> | ||||||
|  | 					<setting name="OAuth">true</setting> | ||||||
|  | 				</settings> | ||||||
|  | 			</api> | ||||||
|  | 		</apis> | ||||||
|  | 	</service> | ||||||
|  | </rsd> | ||||||
		Reference in New Issue
	
	Block a user