1
0
Fork 0

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