mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:10:10 +00:00
Make "HTTPRequest::fetchUrl" dynamic
This commit is contained in:
parent
3b4cf87c95
commit
1aa07f87a4
20 changed files with 26 additions and 46 deletions
|
@ -25,7 +25,6 @@ use Friendica\BaseModule;
|
|||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Protocol;
|
||||
|
||||
/**
|
||||
|
@ -49,7 +48,7 @@ class Feed extends BaseModule
|
|||
|
||||
$contact = Model\Contact::getByURLForUser($url, local_user(), false);
|
||||
|
||||
$xml = HTTPRequest::fetchUrl($contact['poll']);
|
||||
$xml = DI::httpRequest()->fetchUrl($contact['poll']);
|
||||
|
||||
$import_result = Protocol\Feed::import($xml);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue