mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
GlobalContact created
Moved DirSearch and GlobalContact related functions to Friendica\Model namespace
This commit is contained in:
parent
5f25ef55d2
commit
47db624105
26 changed files with 2715 additions and 2610 deletions
|
@ -4,11 +4,13 @@ namespace Friendica\Worker;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
use dba;
|
||||
|
||||
require_once 'include/follow.php';
|
||||
|
||||
Class OnePoll {
|
||||
Class OnePoll
|
||||
{
|
||||
public static function execute($contact_id = 0, $command = '') {
|
||||
global $a;
|
||||
|
||||
|
@ -16,7 +18,6 @@ Class OnePoll {
|
|||
require_once 'include/items.php';
|
||||
require_once 'include/Contact.php';
|
||||
require_once 'include/email.php';
|
||||
require_once 'include/socgraph.php';
|
||||
require_once 'include/queue_fn.php';
|
||||
|
||||
logger('onepoll: start');
|
||||
|
@ -72,7 +73,7 @@ Class OnePoll {
|
|||
);
|
||||
if (DBM::is_result($r)) {
|
||||
if (!$r[0]['total']) {
|
||||
poco_load($contact['id'], $importer_uid, 0, $contact['poco']);
|
||||
PortableContact::loadWorker($contact['id'], $importer_uid, 0, $contact['poco']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue