]> git.mxchange.org Git - friendica-addons.git/commitdiff
Move Object\Image static methods to Util\Images
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Nov 2019 01:24:47 +0000 (21:24 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Nov 2019 01:24:47 +0000 (21:24 -0400)
twitter/twitter.php

index 4510caefab582c9af5534f9bacdf5607ec3028e0..6cc11f9b1aa8cf69e86d6e5660862f9df0ed4ab2 100644 (file)
@@ -84,10 +84,10 @@ use Friendica\Model\Group;
 use Friendica\Model\Item;
 use Friendica\Model\ItemContent;
 use Friendica\Model\User;
-use Friendica\Object\Image;
 use Friendica\Protocol\Activity;
 use Friendica\Util\ConfigFileLoader;
 use Friendica\Util\DateTimeFormat;
+use Friendica\Util\Images;
 use Friendica\Util\Network;
 use Friendica\Util\Strings;
 
@@ -1010,7 +1010,7 @@ function twitter_fix_avatar($avatar)
 {
        $new_avatar = str_replace("_normal.", ".", $avatar);
 
-       $info = Image::getInfoFromURL($new_avatar);
+       $info = Images::getInfoFromURLCached($new_avatar);
        if (!$info) {
                $new_avatar = $avatar;
        }