use Friendica\Core\Config;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
-use Friendica\Model\GContact;
-use Friendica\Model\Profile;
+use Friendica\Model\GlobalContact;
use Friendica\Network\Probe;
+use Friendica\Object\Photo;
+use Friendica\Object\Profile;
use dba;
use DOMDocument;
use DomXPath;
"generation" => $generation);
try {
- $gcontact = GContact::sanitize($gcontact);
- $gcid = GContact::update($gcontact);
+ $gcontact = GlobalContact::sanitize($gcontact);
+ $gcid = GlobalContact::update($gcontact);
- GContact::link($gcid, $uid, $cid, $zcid);
+ GlobalContact::link($gcid, $uid, $cid, $zcid);
} catch (Exception $e) {
logger($e->getMessage(), LOGGER_DEBUG);
}
$contact = array_merge($contact, $noscrape);
- GContact::update($contact);
+ GlobalContact::update($contact);
if (trim($noscrape["updated"]) != "") {
q(
if (!$force && !self::updateNeeded($gcontacts[0]["created"], $gcontacts[0]["updated"], $gcontacts[0]["last_failure"], $gcontacts[0]["last_contact"])) {
logger("Profile ".$profile." was last updated at ".$gcontacts[0]["updated"]." (cached)", LOGGER_DEBUG);
- GContact::update($contact);
+ GlobalContact::update($contact);
return $gcontacts[0]["updated"];
}
$gcontact["server_url"] = $data["baseurl"];
try {
- $gcontact = GContact::sanitize($gcontact);
- GContact::update($gcontact);
+ $gcontact = GlobalContact::sanitize($gcontact);
+ GlobalContact::update($gcontact);
self::lastUpdated($data["url"], $force);
} catch (Exception $e) {
$contact["server_url"] = $data["baseurl"];
- GContact::update($contact);
+ GlobalContact::update($contact);
$feedret = z_fetch_url($data["poll"]);
"generation" => $generation);
try {
- $gcontact = GContact::sanitize($gcontact);
- GContact::update($gcontact);
+ $gcontact = GlobalContact::sanitize($gcontact);
+ GlobalContact::update($gcontact);
} catch (Exception $e) {
logger($e->getMessage(), LOGGER_DEBUG);
}