mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Poco and gcontact (mostly) removed
This commit is contained in:
parent
a9a9f7d51d
commit
0c73531da1
34 changed files with 370 additions and 2032 deletions
|
@ -22,9 +22,7 @@
|
|||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\GServer;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
|
||||
class UpdateServerDirectories
|
||||
{
|
||||
|
@ -33,16 +31,10 @@ class UpdateServerDirectories
|
|||
*/
|
||||
public static function execute()
|
||||
{
|
||||
if (DI::config()->get('system', 'poco_discovery') == PortableContact::DISABLED) {
|
||||
if (!DI::config()->get('system', 'poco_discovery')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Query Friendica and Hubzilla servers for their users
|
||||
GServer::discover();
|
||||
|
||||
// Query GNU Social servers for their users ("statistics" addon has to be enabled on the GS server)
|
||||
if (!DI::config()->get('system', 'ostatus_disabled')) {
|
||||
GContact::discoverGsUsers();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue