mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:10:11 +00:00
Renamed functions
This commit is contained in:
parent
33cb241ed3
commit
537da657cc
4 changed files with 10 additions and 10 deletions
28
src/Worker/UpdateServerDirectories.php
Normal file
28
src/Worker/UpdateServerDirectories.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* @file src/Worker/UpdateServerDirectories.php
|
||||
*/
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
|
||||
class UpdateServerDirectories
|
||||
{
|
||||
public static function execute()
|
||||
{
|
||||
if (Config::get('system', 'poco_discovery') == PortableContact::DISABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Query Friendica and Hubzilla servers for their users
|
||||
PortableContact::discover();
|
||||
|
||||
// Query GNU Social servers for their users ("statistics" addon has to be enabled on the GS server)
|
||||
if (!Config::get('system', 'ostatus_disabled')) {
|
||||
GContact::discoverGsUsers();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue