Make "HTTPRequest::fetchUrl" dynamic
This commit is contained in:
committed by
Hypolite Petovan
parent
3b4cf87c95
commit
1aa07f87a4
@@ -34,7 +34,6 @@ use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\TwoFactor\AppSpecificPassword;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Util\Crypto;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
@@ -824,7 +823,7 @@ class User
|
||||
$photo_failure = false;
|
||||
|
||||
$filename = basename($photo);
|
||||
$curlResult = HTTPRequest::curl($photo, true);
|
||||
$curlResult = DI::httpRequest()->curl($photo, true);
|
||||
if ($curlResult->isSuccess()) {
|
||||
$img_str = $curlResult->getBody();
|
||||
$type = $curlResult->getContentType();
|
||||
|
||||
Reference in New Issue
Block a user