]> git.mxchange.org Git - friendica.git/commitdiff
Fix for "Undefined index: uri-id""
authorMichael <heluecht@pirati.ca>
Sat, 2 May 2020 05:14:30 +0000 (05:14 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 May 2020 05:14:30 +0000 (05:14 +0000)
src/Protocol/ActivityPub/Processor.php

index 43343f1e6bb0f0ed66acedaa4646bdf1e5de36d4..479d8d55c779913ddfdc7d7e524764ecab33409a 100644 (file)
@@ -387,7 +387,7 @@ class Processor
 
                        if (empty($activity['directmessage']) && ($item['thr-parent'] != $item['uri']) && ($item['gravity'] == GRAVITY_COMMENT)) {
                                $item_private = !in_array(0, $activity['item_receiver']);
-                               $parent = Item::selectFirst(['id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
+                               $parent = Item::selectFirst(['id', 'uri-id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
                                if (!DBA::isResult($parent)) {
                                        Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]);
                                        return false;