mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 21:03:42 +00:00
Updates
Updates from review changes to main friendica project
This commit is contained in:
parent
30fa9ac76c
commit
7b6bc4777c
3 changed files with 4 additions and 5 deletions
|
@ -264,12 +264,12 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@ use Friendica\Core\PConfig;
|
|||
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';
|
||||
|
@ -1046,7 +1045,7 @@ function pumpio_get_contact($uid, $contact, $no_insert = false) {
|
|||
*/
|
||||
}
|
||||
|
||||
Photo::updateContactAvatar($contact->image->url, $uid, $contact_id);
|
||||
Contact::updateAvatar($contact->image->url, $uid, $contact_id);
|
||||
|
||||
return($contact_id);
|
||||
}
|
||||
|
|
|
@ -951,7 +951,7 @@ function twitter_fix_avatar($avatar) {
|
|||
|
||||
$new_avatar = str_replace("_normal.", ".", $avatar);
|
||||
|
||||
$info = Photo::getPhotoInfo($new_avatar);
|
||||
$info = Photo::getInfoFromURL($new_avatar);
|
||||
if (!$info)
|
||||
$new_avatar = $avatar;
|
||||
|
||||
|
|
Loading…
Reference in a new issue