mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
PortableContact created
Create PortableContact and remove socgraph, update references, and calls
This commit is contained in:
parent
47db624105
commit
259f91caa9
26 changed files with 266 additions and 219 deletions
|
@ -7,6 +7,7 @@ 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;
|
||||
|
@ -32,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue