Remove unused consume_feed() parameters

This commit is contained in:
Hypolite Petovan 2019-01-21 11:37:43 -05:00
parent b161bd1dfa
commit 6f7ec1dc0c

View File

@ -247,30 +247,21 @@ function add_page_info_to_body($body, $texturl = false, $no_photos = false)
* @param array $importer * @param array $importer
* @param array $contact * @param array $contact
* @param $hub * @param $hub
* @param int $datedir
* @param int $pass
* @throws ImagickException * @throws ImagickException
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @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 ($contact['network'] === Protocol::OSTATUS) {
if ($pass < 2) { Logger::log("Consume OStatus messages ", Logger::DEBUG);
// Test - remove before flight OStatus::import($xml, $importer, $contact, $hub);
//$tempfile = tempnam(get_temppath(), "ostatus2");
//file_put_contents($tempfile, $xml);
Logger::log("Consume OStatus messages ", Logger::DEBUG);
OStatus::import($xml, $importer, $contact, $hub);
}
return; return;
} }
if ($contact['network'] === Protocol::FEED) { if ($contact['network'] === Protocol::FEED) {
if ($pass < 2) { Logger::log("Consume feeds", Logger::DEBUG);
Logger::log("Consume feeds", Logger::DEBUG); Feed::import($xml, $importer, $contact, $hub);
Feed::import($xml, $importer, $contact, $hub);
}
return; return;
} }