From: Michael Vogel Date: Sun, 7 Jun 2015 22:50:02 +0000 (+0200) Subject: Bugfix: The user id wasn't fetched correctly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb72871f6601078fc9cc40989a7d03339e44779e;p=friendica.git Bugfix: The user id wasn't fetched correctly. --- diff --git a/include/ostatus.php b/include/ostatus.php index a6d424f94e..a1a3f1f70e 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -5,7 +5,7 @@ require_once('include/enotify.php'); require_once('include/items.php'); require_once('include/ostatus_conversation.php'); -function ostatus_fetchauthor($xpath, $context, &$contact) { +function ostatus_fetchauthor($xpath, $context, $importer, &$contact) { $author = array(); $author["author-link"] = $xpath->evaluate('atom:author/atom:uri/text()', $context)->item(0)->nodeValue; @@ -112,9 +112,9 @@ function ostatus_import($xml,$importer,&$contact) { // fetch the author if ($first_child == "feed") - $author = ostatus_fetchauthor($xpath, $doc->firstChild, $contact); + $author = ostatus_fetchauthor($xpath, $doc->firstChild, $importer, $contact); else - $author = ostatus_fetchauthor($xpath, $entry, $contact); + $author = ostatus_fetchauthor($xpath, $entry, $importer, $contact); $item = array_merge($header, $author); @@ -271,7 +271,7 @@ function ostatus_import($xml,$importer,&$contact) { $orig_created = $xpath->query('atom:published/text()', $activityobjects)->item(0)->nodeValue; $orig_contact = $contact; - $orig_author = ostatus_fetchauthor($xpath, $activityobjects, $orig_contact); + $orig_author = ostatus_fetchauthor($xpath, $activityobjects, $importer, $orig_contact); $prefix = share_header($orig_author['author-name'], $orig_author['author-link'], $orig_author['author-avatar'], "", $orig_created, $orig_uri); $item["body"] = $prefix.html2bbcode($orig_body)."[/share]";