forked from friendica/friendica-addons
Move Object\Image static methods to Util\Images
This commit is contained in:
parent
03b39712b9
commit
4f545974da
1 changed files with 2 additions and 2 deletions
|
@ -84,10 +84,10 @@ use Friendica\Model\Group;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\ItemContent;
|
use Friendica\Model\ItemContent;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Object\Image;
|
|
||||||
use Friendica\Protocol\Activity;
|
use Friendica\Protocol\Activity;
|
||||||
use Friendica\Util\ConfigFileLoader;
|
use Friendica\Util\ConfigFileLoader;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
|
use Friendica\Util\Images;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\Strings;
|
use Friendica\Util\Strings;
|
||||||
|
|
||||||
|
@ -1010,7 +1010,7 @@ function twitter_fix_avatar($avatar)
|
||||||
{
|
{
|
||||||
$new_avatar = str_replace("_normal.", ".", $avatar);
|
$new_avatar = str_replace("_normal.", ".", $avatar);
|
||||||
|
|
||||||
$info = Image::getInfoFromURL($new_avatar);
|
$info = Images::getInfoFromURLCached($new_avatar);
|
||||||
if (!$info) {
|
if (!$info) {
|
||||||
$new_avatar = $avatar;
|
$new_avatar = $avatar;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue