]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
GContact renamed
[friendica-addons.git] / twitter / twitter.php
index a4017562b84ff2f073c593a9a6e5af54fa8c664c..f8c6aec9a7e6c213ed45572a28847f62507d40c4 100644 (file)
@@ -63,7 +63,7 @@
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Core\Worker;
-use Friendica\Model\GContact;
+use Friendica\Model\GlobalContact;
 
 require_once 'include/enotify.php';
 
@@ -956,7 +956,7 @@ function twitter_fetch_contact($uid, $contact, $create_user) {
 
        $avatar = twitter_fix_avatar($contact->profile_image_url_https);
 
-       GContact::update(array("url" => "https://twitter.com/".$contact->screen_name,
+       GlobalContact::update(array("url" => "https://twitter.com/".$contact->screen_name,
                        "network" => NETWORK_TWITTER, "photo" => $avatar,  "hide" => true,
                        "name" => $contact->name, "nick" => $contact->screen_name,
                        "location" => $contact->location, "about" => $contact->description,