]> git.mxchange.org Git - friendica.git/commitdiff
Use the correct function is adviced ...
authorMichael <heluecht@pirati.ca>
Fri, 3 Sep 2021 04:20:32 +0000 (04:20 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 3 Sep 2021 04:20:32 +0000 (04:20 +0000)
src/Module/Diaspora/Fetch.php
src/Protocol/Diaspora.php

index 265d9508e4da25fb937e8796e05b37c166098411..55eeea9b5534f8b2e482919db40b8c834b09817b 100644 (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"]);
index f4dc997e6276266300d52621c13ff0a77df089f2..48d7a3371cbfd49c62700b2da5fd30701f940213 100644 (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'];