X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDiaspora.php;h=586b6e9ec282e8b425adfbf42adff5a71d995bcc;hb=e2b8d5379b1ed0dc17bcf186c969b136c1f49b15;hp=00da7d3915d2dd68d0f7c6013af0472c5f4b3c8e;hpb=e7884b14092b5f5f2c5656d622a625006bffb165;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;