Browse Source

Merge pull request #909 from MrPetovan/task/4090-move-profile_photo-to-src

Move Object\Image static methods to Util\Images
pull/921/head
Michael Vogel 3 years ago committed by GitHub
parent
commit
7b5daad98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      twitter/twitter.php

4
twitter/twitter.php

@ -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;
}

Loading…
Cancel
Save