X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2F_well_known.php;h=33070a1ecdf4dc071d65aabd94b67f530be47efe;hb=2a4ebaa438c0e4c84e20d2567d708e472a7c7192;hp=3d722f72246e764e853ce8a8bb184aaebb7f2067;hpb=c8e0685788a26811af63f3127ecff0c9f1712ca4;p=friendica.git diff --git a/mod/_well_known.php b/mod/_well_known.php index 3d722f7224..33070a1ecd 100644 --- a/mod/_well_known.php +++ b/mod/_well_known.php @@ -1,5 +1,6 @@ argc > 1) { @@ -10,6 +11,9 @@ function _well_known_init(&$a){ case "x-social-relay": wk_social_relay($a); break; + case "nodeinfo": + nodeinfo_wellknown($a); + break; } } http_status_exit(404); @@ -57,6 +61,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; }