mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
Return 404 if nodeinfo isn't enabled.
This commit is contained in:
parent
c1896eee34
commit
45cc8180b1
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