mirror of
https://github.com/friendica/friendica
synced 2025-04-24 19:50:10 +00: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
|
@ -8,12 +8,12 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
|
||||
require_once 'include/queue_fn.php';
|
||||
require_once 'include/datetime.php';
|
||||
require_once 'include/items.php';
|
||||
require_once 'include/bbcode.php';
|
||||
require_once 'include/socgraph.php';
|
||||
|
||||
function queue_run(&$argv, &$argc)
|
||||
{
|
||||
|
@ -99,7 +99,7 @@ function queue_run(&$argv, &$argc)
|
|||
return;
|
||||
}
|
||||
|
||||
$server = poco_detect_server($c[0]['url']);
|
||||
$server = PortableContact::detectServer($c[0]['url']);
|
||||
|
||||
if ($server != "") {
|
||||
$vital = Cache::get($cachekey_server.$server);
|
||||
|
@ -107,7 +107,7 @@ function queue_run(&$argv, &$argc)
|
|||
if (is_null($vital)) {
|
||||
logger("Check server ".$server." (".$c[0]["network"].")");
|
||||
|
||||
$vital = poco_check_server($server, $c[0]["network"], true);
|
||||
$vital = PortableContact::checkServer($server, $c[0]["network"], true);
|
||||
Cache::set($cachekey_server.$server, $vital, CACHE_QUARTER_HOUR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue