X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2F_well_known.php;h=75948a008834abf70279834a1911dbe39a913f96;hb=3c5f7e457aa0717855f3e8453b8bc036c16158f2;hp=3d722f72246e764e853ce8a8bb184aaebb7f2067;hpb=b24453f8da5c587a13ff0bbe6c71ee1fef84bff5;p=friendica.git diff --git a/mod/_well_known.php b/mod/_well_known.php index 3d722f7224..75948a0088 100644 --- a/mod/_well_known.php +++ b/mod/_well_known.php @@ -1,7 +1,9 @@ argc > 1) { switch($a->argv[1]) { case "host-meta": @@ -10,13 +12,16 @@ function _well_known_init(&$a){ case "x-social-relay": wk_social_relay($a); break; + case "nodeinfo": + nodeinfo_wellknown($a); + break; } } http_status_exit(404); killme(); } -function wk_social_relay(&$a) { +function wk_social_relay(App $a) { define('SR_SCOPE_ALL', 'all'); define('SR_SCOPE_TAGS', 'tags'); @@ -57,6 +62,6 @@ function wk_social_relay(&$a) { "tags" => $taglist); header('Content-type: application/json; charset=utf-8'); - echo json_encode($relay, true); + echo json_encode($relay, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); exit; }