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