use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\Util\Network;
-require_once 'include/dba.php';
-
function nodeinfo_wellknown(App $a) {
$nodeinfo = ['links' => [['rel' => 'http://nodeinfo.diaspora.software/ns/schema/1.0',
'href' => System::baseUrl().'/nodeinfo/1.0']]];
$nodeinfo['services']['inbound'][] = 'gnusocial';
$nodeinfo['services']['outbound'][] = 'gnusocial';
}
-
- if (Addon::isEnabled('gpluspost') || Addon::isEnabled('buffer')) {
- $nodeinfo['services']['outbound'][] = 'google';
- }
if (Addon::isEnabled('ijpost')) {
$nodeinfo['services']['outbound'][] = 'insanejournal';
}
function nodeinfo_cron() {
- $a = get_app();
+ $a = \get_app();
// If the addon 'statistics_json' is enabled then disable it and activate nodeinfo.
if (Addon::isEnabled('statistics_json')) {