]> git.mxchange.org Git - friendica-addons.git/commitdiff
Updates
authorAdam Magness <adam.magness@gmail.com>
Wed, 29 Nov 2017 22:38:05 +0000 (17:38 -0500)
committerAdam Magness <adam.magness@gmail.com>
Wed, 29 Nov 2017 22:38:05 +0000 (17:38 -0500)
Updates from review changes to main friendica project

fromgplus/fromgplus.php
pumpio/pumpio.php
twitter/twitter.php

index e0a49b3fda32d4ed3856345d1da49ad4abcf40b2..665590d34b6f1d163d8ae2eeb720a9acc6601b27 100644 (file)
@@ -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);
 
index 37a09c7a6e8ea882336ce5a18aae1e67b635d493..9cf2461fe7dc4cd4c62569dec370a7ff3e849b0f 100644 (file)
@@ -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);
 }
index 8b42e1872bd4539e24a7a9d78698849d39a5d137..de0ba71ac492b65d5705e6e239d03fef423485d1 100644 (file)
@@ -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;