mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:50:10 +00:00
Rework Feed::import parameters
- Remove unused $hub - Replace $simulate with an implicit condition
This commit is contained in:
parent
38fe3b8994
commit
ebaf726744
4 changed files with 27 additions and 41 deletions
|
@ -29,15 +29,12 @@ class Feed extends BaseModule
|
|||
if (!empty($_REQUEST['url'])) {
|
||||
$url = $_REQUEST['url'];
|
||||
|
||||
$importer = Model\User::getById(local_user());
|
||||
|
||||
$contact_id = Model\Contact::getIdForURL($url, local_user(), true);
|
||||
$contact = Model\Contact::getById($contact_id);
|
||||
|
||||
$xml = Network::fetchUrl($contact['poll']);
|
||||
|
||||
$dummy = null;
|
||||
$import_result = Protocol\Feed::import($xml, $importer, $contact, $dummy, true);
|
||||
$import_result = Protocol\Feed::import($xml);
|
||||
|
||||
$result = [
|
||||
'input' => $xml,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue