Parameters redone
This commit is contained in:
parent
0fdab4ed10
commit
7e31cebb67
|
@ -53,7 +53,7 @@ class OStatus
|
|||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
private static function fetchAuthor(DOMXPath $xpath, $context, array $importer, &$contact, $onlyfetch)
|
||||
private static function fetchAuthor(DOMXPath $xpath, $context, array $importer, array &$contact = null, $onlyfetch)
|
||||
{
|
||||
$author = [];
|
||||
$author["author-link"] = XML::getFirstNodeValue($xpath, 'atom:author/atom:uri/text()', $context);
|
||||
|
@ -322,7 +322,7 @@ class OStatus
|
|||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
private static function process($xml, array $importer, &$contact, &$hub, $stored = false, $initialize = true)
|
||||
private static function process($xml, array $importer, array &$contact = null, &$hub, $stored = false, $initialize = true)
|
||||
{
|
||||
if ($initialize) {
|
||||
self::$itemlist = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user