From: Michael Date: Fri, 20 Dec 2019 20:49:09 +0000 (+0000) Subject: "UpdateSuggestions" added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf852cc096f468eb6b0aa1354c02c4c830bc11b9;p=friendica.git "UpdateSuggestions" added --- diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index e43fde28ef..42a6219762 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -75,7 +75,7 @@ class Cron Worker::add(PRIORITY_LOW, "DiscoverPoCo", "update_server"); - Worker::add(PRIORITY_LOW, "DiscoverPoCo", "suggestions"); + Worker::add(PRIORITY_LOW, 'UpdateSuggestions'); Worker::add(PRIORITY_LOW, 'Expire'); diff --git a/src/Worker/DiscoverPoCo.php b/src/Worker/DiscoverPoCo.php index 47071e20cb..44b2219201 100644 --- a/src/Worker/DiscoverPoCo.php +++ b/src/Worker/DiscoverPoCo.php @@ -27,7 +27,6 @@ class DiscoverPoCo /* This function can be called in these ways: - checkcontact: Updates gcontact entries - - 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. - PortableContact::load: Load POCO data from a given POCO address @@ -37,8 +36,6 @@ class DiscoverPoCo $mode = 0; if (($command == "checkcontact") && Config::get('system', 'poco_completion')) { self::discoverUsers(); - } elseif ($command == "suggestions") { - GContact::updateSuggestions(); } elseif ($command == "server") { $server_url = $param1; if ($server_url == "") { diff --git a/src/Worker/UpdateSuggestions.php b/src/Worker/UpdateSuggestions.php new file mode 100644 index 0000000000..222244c1c4 --- /dev/null +++ b/src/Worker/UpdateSuggestions.php @@ -0,0 +1,17 @@ +