}
if ($cleaned["full"] != "")
- $infoFull = Photo::getPhotoInfo($cleaned["full"]);
+ $infoFull = Photo::getInfoFromURL($cleaned["full"]);
else
$infoFull = array("0" => 0, "1" => 0);
if ($cleaned["preview"] != "")
- $infoPreview = Photo::getPhotoInfo($cleaned["preview"]);
+ $infoPreview = Photo::getInfoFromURL($cleaned["preview"]);
else
$infoFull = array("0" => 0, "1" => 0);
use Friendica\Core\Worker;
use Friendica\Model\GlobalContact;
use Friendica\Object\Contact;
-use Friendica\Object\Photo;
require 'addon/pumpio/oauth/http.php';
require 'addon/pumpio/oauth/oauth_client.php';
*/
}
- Photo::updateContactAvatar($contact->image->url, $uid, $contact_id);
+ Contact::updateAvatar($contact->image->url, $uid, $contact_id);
return($contact_id);
}
$new_avatar = str_replace("_normal.", ".", $avatar);
- $info = Photo::getPhotoInfo($new_avatar);
+ $info = Photo::getInfoFromURL($new_avatar);
if (!$info)
$new_avatar = $avatar;