X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDiaspora.php;h=586b6e9ec282e8b425adfbf42adff5a71d995bcc;hb=7155f825daf90f4113ba3e8755eb51898b8e5736;hp=00da7d3915d2dd68d0f7c6013af0472c5f4b3c8e;hpb=09cf32926d50c1142e2c0e95dd417d518587d38c;p=friendica.git diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 00da7d3915..586b6e9ec2 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -4049,13 +4049,11 @@ class Diaspora return false; } - $parent = Post::selectFirst(['parent-uri'], ['uri' => $item['thr-parent']]); - if (!DBA::isResult($parent)) { - return; + // This is only needed for the automated tests + if (empty($owner['uprvkey'])) { + return false; } - $item['parent-uri'] = $parent['parent-uri']; - $message = self::constructComment($item, $owner); if ($message === false) { return false;