use Friendica\Core\Config;
use Friendica\Core\PConfig;
-use Friendica\Object\Photo;
+use Friendica\Object\Image;
require_once 'mod/share.php';
require_once 'mod/parse_url.php';
}
if ($cleaned["full"] != "")
- $infoFull = Photo::getInfoFromURL($cleaned["full"]);
+ $infoFull = Image::getInfoFromURL($cleaned["full"]);
else
$infoFull = array("0" => 0, "1" => 0);
if ($cleaned["preview"] != "")
- $infoPreview = Photo::getInfoFromURL($cleaned["preview"]);
+ $infoPreview = Image::getInfoFromURL($cleaned["preview"]);
else
$infoFull = array("0" => 0, "1" => 0);
$images = fromgplus_cleanupgoogleproxy($attachment->fullImage, $attachment->image);
} else {
if ($attachment->fullImage->url != "") {
- $images = Photo::storePhoto($a, $uid, "", $attachment->fullImage->url);
+ $images = Image::storePhoto($a, $uid, "", $attachment->fullImage->url);
} elseif ($attachment->image->url != "") {
- $images = Photo::storePhoto($a, $uid, "", $attachment->image->url);
+ $images = Image::storePhoto($a, $uid, "", $attachment->image->url);
}
}
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\Worker;
-use Friendica\Model\GlobalContact;
-use Friendica\Object\Contact;
+use Friendica\Model\Contact;
+use Friendica\Model\GContact;
require 'addon/pumpio/oauth/http.php';
require 'addon/pumpio/oauth/oauth_client.php';
function pumpio_get_contact($uid, $contact, $no_insert = false) {
- GlobalContact::update(array("url" => $contact->url, "network" => NETWORK_PUMPIO, "generation" => 2,
+ GContact::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\Core\Worker;
-use Friendica\Model\GlobalContact;
-use Friendica\Object\Photo;
+use Friendica\Model\GContact;
+use Friendica\Model\Photo;
+use Friendica\Object\Image;
require_once 'include/enotify.php';
function twitter_fix_avatar($avatar) {
$new_avatar = str_replace("_normal.", ".", $avatar);
- $info = Photo::getInfoFromURL($new_avatar);
+ $info = Image::getInfoFromURL($new_avatar);
if (!$info)
$new_avatar = $avatar;
$avatar = twitter_fix_avatar($contact->profile_image_url_https);
- GlobalContact::update(array("url" => "https://twitter.com/".$contact->screen_name,
+ GContact::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,