X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpoco.php;h=2e2791fc1ee6b763c008d79364dfb4192a59d36d;hb=c54a2c1e83822f6e043b449468570d2c9ed3ab3a;hp=c5c5ef4c835548d901b08cad10001623509eeaf8;hpb=2ad162f991fdd32122b029398b9ab9e8801c0462;p=friendica.git diff --git a/mod/poco.php b/mod/poco.php index c5c5ef4c83..2e2791fc1e 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -4,8 +4,10 @@ // https://web.archive.org/web/20160405005550/http://portablecontacts.net/draft-spec.html use Friendica\App; +use Friendica\Core\Cache; use Friendica\Core\Config; use Friendica\Database\DBM; +use Friendica\Protocol\PortableContact; function poco_init(App $a) { $system_mode = false; @@ -31,9 +33,8 @@ function poco_init(App $a) { $global = false; if ($a->argc > 1 && $a->argv[1] === '@server') { - require_once 'include/socgraph.php'; // List of all servers that this server knows - $ret = poco_serverlist(); + $ret = PortableContact::serverlist(); header('Content-type: application/json'); echo json_encode($ret); killme();