X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FGContact.php;h=7b14b2cdc4d19e42ce4cab9298f6a153aaa92343;hb=5a30dfcf34b1c739e5b0f42192b363aae60e0b1e;hp=8e78dc68fd00a5b964206187aa32f97a94a1ebe8;hpb=39ff6e9ce9251fe69b56ba05ea7bdc1896f34de2;p=friendica.git diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 8e78dc68fd..7b14b2cdc4 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -1,4 +1,5 @@ entries) { @@ -664,6 +665,8 @@ class GContact { $gcontact_id = 0; $doprobing = false; + $last_failure_str = ''; + $last_contact_str = ''; if (in_array($contact["network"], [NETWORK_PHANTOM])) { logger("Invalid network for contact url ".$contact["url"]." - Called by: ".System::callstack(), LOGGER_DEBUG); @@ -715,8 +718,8 @@ class GContact dbesc($contact["url"]), dbesc(normalise_link($contact["url"])), dbesc($contact["photo"]), - dbesc(datetime_convert()), - dbesc(datetime_convert()), + dbesc(DateTimeFormat::utcNow()), + dbesc(DateTimeFormat::utcNow()), dbesc($contact["location"]), dbesc($contact["about"]), intval($contact["hide"]), @@ -969,7 +972,7 @@ class GContact /** * @brief Fetches users of given GNU Social server * - * If the "Statistics" plugin is enabled (See http://gstools.org/ for details) we query user data with this. + * If the "Statistics" addon is enabled (See http://gstools.org/ for details) we query user data with this. * * @param string $server Server address * @return void @@ -980,7 +983,7 @@ class GContact $url = $server."/main/statistics"; - $result = z_fetch_url($url); + $result = Network::curl($url); if (!$result["success"]) { return false; } @@ -1048,7 +1051,7 @@ class GContact foreach ($r as $server) { self::fetchGsUsers($server["url"]); - q("UPDATE `gserver` SET `last_poco_query` = '%s' WHERE `nurl` = '%s'", dbesc(datetime_convert()), dbesc($server["nurl"])); + q("UPDATE `gserver` SET `last_poco_query` = '%s' WHERE `nurl` = '%s'", dbesc(DateTimeFormat::utcNow()), dbesc($server["nurl"])); } }