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