Use the correct function is adviced ...

This commit is contained in:
Michael 2021-09-03 04:20:32 +00:00
parent 307cfef12b
commit ce6f6978bd
2 changed files with 2 additions and 2 deletions

View File

@ -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"]);

View File

@ -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'];