Add chimo's Nodeinfo plugin as a default GNU social plugin

This commit is contained in:
Diogo Cordeiro
2019-04-22 06:48:51 +01:00
parent e0887220b0
commit e6667db0cd
8 changed files with 971 additions and 0 deletions

View 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'));
}
}