X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FGlobalContact.php;h=dc30c8b692453b0acda30a2550be895e9eacc770;hb=b92fc24ff06681f445edff0d45f8f81a7e25ebe6;hp=dc62024bc4095120ca6f24aa11bb33bdc6c100bc;hpb=47db624105182194b11f0039742deda6fc12c54d;p=friendica.git diff --git a/src/Model/GlobalContact.php b/src/Model/GlobalContact.php index dc62024bc4..dc30c8b692 100644 --- a/src/Model/GlobalContact.php +++ b/src/Model/GlobalContact.php @@ -1,5 +1,4 @@ entries) { foreach ($j->entries as $entry) { - poco_check_server($entry->url); + PortableContact::checkServer($entry->url); $url = $entry->url . '/poco'; if (! in_array($url, $done)) { @@ -591,7 +592,7 @@ class GlobalContact */ public static function fixAlternateContactAddress(&$contact) { - if (($contact["network"] == NETWORK_OSTATUS) && poco_alternate_ostatus_url($contact["url"])) { + if (($contact["network"] == NETWORK_OSTATUS) && PortableContact::alternateOStatusUrl($contact["url"])) { $data = Probe::uri($contact["url"]); if ($contact["network"] == NETWORK_OSTATUS) { logger("Fix primary url from ".$contact["url"]." to ".$data["url"]." - Called by: ".System::callstack(), LOGGER_DEBUG); @@ -688,7 +689,7 @@ class GlobalContact if ($doprobing) { logger("Last Contact: ". $last_contact_str." - Last Failure: ".$last_failure_str." - Checking: ".$contact["url"], LOGGER_DEBUG); - Worker::add(PRIORITY_LOW, 'gprobe', $contact["url"]); + Worker::add(PRIORITY_LOW, 'GProbe', $contact["url"]); } return $gcontact_id; @@ -924,7 +925,7 @@ class GlobalContact * * @param str $server Server address */ - public static function gsFetchUsers($server) + public static function fetchGsUsers($server) { logger("Fetching users from GNU Social server ".$server, LOGGER_DEBUG); @@ -980,7 +981,7 @@ class GlobalContact * @brief Asking GNU Social server on a regular base for their user data * */ - public static function gsDiscover() + public static function discoverGsUsers() { $requery_days = intval(Config::get("system", "poco_requery_days")); @@ -997,7 +998,7 @@ class GlobalContact } foreach ($r as $server) { - self::gsFetchUsers($server["url"]); + self::fetchGsUsers($server["url"]); q("UPDATE `gserver` SET `last_poco_query` = '%s' WHERE `nurl` = '%s'", dbesc(datetime_convert()), dbesc($server["nurl"])); } }