]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/NodeInfo110.php
Random profiles now moved away from "gcontact" as well
[friendica.git] / src / Module / NodeInfo110.php
index 954f362190995d0a88088d4b30e10976ee28b9d3..79e215e4fbacd19e194f47a8d6a238a0d69970e8 100644 (file)
@@ -23,6 +23,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Core\Addon;
+use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\Nodeinfo;
 
@@ -85,8 +86,6 @@ class NodeInfo110 extends BaseModule
 
                $nodeinfo['metadata']['explicitContent'] = $config->get('system', 'explicit_content', false) == true;
 
-               header('Content-type: application/json; charset=utf-8');
-               echo json_encode($nodeinfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
-               exit;
+               System::jsonExit($nodeinfo, 'application/json; charset=utf-8', JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
        }
 }