Use the correct function is adviced ...
This commit is contained in:
parent
307cfef12b
commit
ce6f6978bd
|
@ -78,7 +78,7 @@ class Fetch extends BaseModule
|
||||||
if ($item['gravity'] == GRAVITY_PARENT) {
|
if ($item['gravity'] == GRAVITY_PARENT) {
|
||||||
$status = Diaspora::buildStatus($item, $user);
|
$status = Diaspora::buildStatus($item, $user);
|
||||||
} else {
|
} else {
|
||||||
$status = Diaspora::constructComment($item, $user);
|
$status = ['type' => 'comment', 'message' => Diaspora::createCommentSignature($item)];
|
||||||
}
|
}
|
||||||
|
|
||||||
$xml = Diaspora::buildPostXml($status["type"], $status["message"]);
|
$xml = Diaspora::buildPostXml($status["type"], $status["message"]);
|
||||||
|
|
|
@ -3614,7 +3614,7 @@ class Diaspora
|
||||||
* @return array|false The data for a comment
|
* @return array|false The data for a comment
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @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'];
|
$cachekey = "diaspora:constructComment:".$item['guid'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue