From 6f7ec1dc0c7aa9ce313c9e00eaec5711e5839541 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 21 Jan 2019 11:37:43 -0500 Subject: [PATCH] Remove unused consume_feed() parameters --- include/items.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/include/items.php b/include/items.php index 52d37d621c..88eec1dc48 100644 --- a/include/items.php +++ b/include/items.php @@ -247,30 +247,21 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false) * @param array $importer * @param array $contact * @param $hub - * @param int $datedir - * @param int $pass * @throws ImagickException * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ -function consume_feed($xml, array $importer, array $contact, &$hub, $datedir = 0, $pass = 0) +function consume_feed($xml, array $importer, array $contact, &$hub) { if ($contact['network'] === Protocol::OSTATUS) { - if ($pass < 2) { - // Test - remove before flight - //$tempfile = tempnam(get_temppath(), "ostatus2"); - //file_put_contents($tempfile, $xml); - Logger::log("Consume OStatus messages ", Logger::DEBUG); - OStatus::import($xml, $importer, $contact, $hub); - } + Logger::log("Consume OStatus messages ", Logger::DEBUG); + OStatus::import($xml, $importer, $contact, $hub); return; } if ($contact['network'] === Protocol::FEED) { - if ($pass < 2) { - Logger::log("Consume feeds", Logger::DEBUG); - Feed::import($xml, $importer, $contact, $hub); - } + Logger::log("Consume feeds", Logger::DEBUG); + Feed::import($xml, $importer, $contact, $hub); return; }