use Friendica\DI;
use Friendica\Model;
use Friendica\Protocol;
-use Friendica\Util\Network;
/**
* Tests a given feed of a contact
public static function init(array $parameters = [])
{
if (!local_user()) {
- info(DI::l10n()->t('You must be logged in to use this module'));
+ notice(DI::l10n()->t('You must be logged in to use this module'));
DI::baseUrl()->redirect();
}
}
$contact = Model\Contact::getByURLForUser($url, local_user(), false);
- $xml = Network::fetchUrl($contact['poll']);
+ $xml = DI::httpRequest()->fetch($contact['poll']);
$import_result = Protocol\Feed::import($xml);