use Friendica\Core\Config;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
-use Friendica\Model\GlobalContact;
+use Friendica\Model\GContact;
use Friendica\Network\Probe;
use Friendica\Protocol\PortableContact;
require_once 'include/datetime.php';
-class DiscoverPoco {
+class DiscoverPoCo {
/// @todo Clean up this mess of a parameter hell and split it in several classes
- public static function execute($command, $param1 = '', $param2 = '', $param3 = '', $param4 = '')
+ public static function execute($command = '', $param1 = '', $param2 = '', $param3 = '', $param4 = '')
{
/*
This function can be called in these ways:
}
logger($result, LOGGER_DEBUG);
} elseif ($mode == 3) {
- GlobalContact::updateSuggestions();
+ GContact::updateSuggestions();
} elseif (($mode == 2) && Config::get('system', 'poco_completion')) {
self::discoverUsers();
} elseif (($mode == 1) && ($search != "") && Config::get('system', 'poco_local_search')) {
// Query GNU Social servers for their users ("statistics" addon has to be enabled on the GS server)
if (!Config::get('system', 'ostatus_disabled')) {
- GlobalContact::discoverGsUsers();
+ GContact::discoverGsUsers();
}
}
$data["server_url"] = $data["baseurl"];
- GlobalContact::update($data);
+ GContact::update($data);
} else {
logger("Profile ".$jj->url." is not responding or no Friendica contact - but network ".$data["network"], LOGGER_DEBUG);
}
$contact = Probe::uri($user->site_address."/".$user->name);
if ($contact["network"] != NETWORK_PHANTOM) {
$contact["about"] = $user->description;
- GlobalContact::update($contact);
+ GContact::update($contact);
}
}
}