]> git.mxchange.org Git - friendica.git/blobdiff - mod/poco.php
Merge pull request #4170 from MrPetovan/bug/4155-remove-proxy-oembed
[friendica.git] / mod / poco.php
index c5c5ef4c835548d901b08cad10001623509eeaf8..2e2791fc1ee6b763c008d79364dfb4192a59d36d 100644 (file)
@@ -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();