Merge pull request #6727 from nupplaphil/issue/6472-nodeinfo
Returning 404 if nodeinfo isn't enabled
This commit is contained in:
commit
5f84c7f3ad
|
@ -12,7 +12,12 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
|
|
||||||
function nodeinfo_wellknown(App $a) {
|
function nodeinfo_wellknown(App $a) {
|
||||||
|
if (!Config::get('system', 'nodeinfo')) {
|
||||||
|
System::httpExit(404);
|
||||||
|
}
|
||||||
|
|
||||||
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
|
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
|
||||||
'href' => System::baseUrl().'/nodeinfo/1.0']]];
|
'href' => System::baseUrl().'/nodeinfo/1.0']]];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user