use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\Worker;
-use Friendica\Model\GContact;
+use Friendica\Model\GlobalContact;
require 'addon/pumpio/oauth/http.php';
require 'addon/pumpio/oauth/oauth_client.php';
function pumpio_get_contact($uid, $contact, $no_insert = false) {
- GContact::update(array("url" => $contact->url, "network" => NETWORK_PUMPIO, "generation" => 2,
+ GlobalContact::update(array("url" => $contact->url, "network" => NETWORK_PUMPIO, "generation" => 2,
"photo" => $contact->image->url, "name" => $contact->displayName, "hide" => true,
"nick" => $contact->preferredUsername, "location" => $contact->location->displayName,
"about" => $contact->summary, "addr" => str_replace("acct:", "", $contact->id)));
use Friendica\Core\Config;
use Friendica\Core\PConfig;
-use Friendica\Model\GContact;
+use Friendica\Model\GlobalContact;
class StatusNetOAuth extends TwitterOAuth {
function get_maxlength() {
if ($contact->statusnet_profile_url == "")
return(-1);
- GContact::update(array("url" => $contact->statusnet_profile_url,
+ GlobalContact::update(array("url" => $contact->statusnet_profile_url,
"network" => NETWORK_STATUSNET, "photo" => $contact->profile_image_url,
"name" => $contact->name, "nick" => $contact->screen_name,
"location" => $contact->location, "about" => $contact->description,
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';
$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,