Add chimo's Nodeinfo plugin as a default GNU social plugin
This commit is contained in:
17
plugins/Nodeinfo/actions/nodeinfojrd.php
Normal file
17
plugins/Nodeinfo/actions/nodeinfojrd.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (!defined('GNUSOCIAL')) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
class NodeinfoJRDAction extends XrdAction
|
||||
{
|
||||
const NODEINFO_2_0_REL = 'http://nodeinfo.diaspora.software/ns/schema/2.0';
|
||||
|
||||
protected $defaultformat = 'json';
|
||||
|
||||
protected function setXRD()
|
||||
{
|
||||
$this->xrd->links[] = new XML_XRD_Element_link(self::NODEINFO_2_0_REL, common_local_url('nodeinfo_2_0'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user