From ce6f6978bdd50792875ca2b7e9b4123936b85f45 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 3 Sep 2021 04:20:32 +0000 Subject: [PATCH] Use the correct function is adviced ... --- src/Module/Diaspora/Fetch.php | 2 +- src/Protocol/Diaspora.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'];