diff --git a/src/Module/Diaspora/Fetch.php b/src/Module/Diaspora/Fetch.php index 265d9508e..55eeea9b5 100644 --- a/src/Module/Diaspora/Fetch.php +++ b/src/Module/Diaspora/Fetch.php @@ -78,7 +78,7 @@ class Fetch extends BaseModule if ($item['gravity'] == GRAVITY_PARENT) { $status = Diaspora::buildStatus($item, $user); } else { - $status = Diaspora::constructComment($item, $user); + $status = ['type' => 'comment', 'message' => Diaspora::createCommentSignature($item)]; } $xml = Diaspora::buildPostXml($status["type"], $status["message"]); diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index f4dc997e6..48d7a3371 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -3614,7 +3614,7 @@ class Diaspora * @return array|false The data for a comment * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function constructComment(array $item, array $owner) + private static function constructComment(array $item, array $owner) { $cachekey = "diaspora:constructComment:".$item['guid'];