From: Michael Date: Fri, 20 Dec 2019 20:37:21 +0000 (+0000) Subject: Added UpdateServerDirectory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1ad549e0b333fc993b2da006060224ba0dbc77f;p=friendica.git Added UpdateServerDirectory --- diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 228a96762c..655929f529 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -488,7 +488,7 @@ class PortableContact } Logger::log('Update directory from server ' . $gserver['url'] . ' with ID ' . $gserver['id'], Logger::DEBUG); - Worker::add(PRIORITY_LOW, 'DiscoverPoCo', 'update_server_directory', (int) $gserver['id']); + Worker::add(PRIORITY_LOW, 'UpdateServerDirectory', (int)$gserver['id']); if (!$complete && ( --$no_of_queries == 0)) { break; diff --git a/src/Worker/DiscoverPoCo.php b/src/Worker/DiscoverPoCo.php index 2c3536bf86..47071e20cb 100644 --- a/src/Worker/DiscoverPoCo.php +++ b/src/Worker/DiscoverPoCo.php @@ -30,7 +30,6 @@ class DiscoverPoCo - suggestions: Discover other servers for their contacts. - server : Searches for the poco server list. "poco url" is base64 encoded. - update_server: Frequently check the first 250 servers for vitality. - - update_server_directory: Discover the given server id for their contacts - PortableContact::load: Load POCO data from a given POCO address */ @@ -59,8 +58,6 @@ class DiscoverPoCo Logger::log($result, Logger::DEBUG); } elseif ($command == "update_server") { self::updateServer(); - } elseif ($command == "update_server_directory") { - PortableContact::discoverSingleServer(intval($param1)); } elseif ($command == "load") { if (!empty($param4)) { $url = $param4; diff --git a/src/Worker/UpdateServerDirectory.php b/src/Worker/UpdateServerDirectory.php new file mode 100644 index 0000000000..df87b20dcb --- /dev/null +++ b/src/Worker/UpdateServerDirectory.php @@ -0,0 +1,18 @@ +