]> git.mxchange.org Git - friendica.git/commitdiff
Add uri as well
authorMichael <heluecht@pirati.ca>
Thu, 29 Sep 2022 14:13:39 +0000 (14:13 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 29 Sep 2022 14:13:39 +0000 (14:13 +0000)
src/Protocol/ActivityPub/Processor.php

index cadf982139042e2ffe8eb21bbe513d4a6b14ae13..6fcce4a3aba2baffddf1cd25b4e3e70113507d91 100644 (file)
@@ -981,9 +981,10 @@ class Processor
                        }
 
                        if (($receiver != 0) && empty($item['parent-uri-id']) && !empty($item['thr-parent-id'])) {
-                               $parent = Post::selectFirst(['parent-uri-id'], ['uri-id' => $item['thr-parent-id'], 'uid' => [0, $receiver]]);
+                               $parent = Post::selectFirst(['parent-uri-id', 'parent-uri'], ['uri-id' => $item['thr-parent-id'], 'uid' => [0, $receiver]]);
                                if (!empty($parent['parent-uri-id'])) {
                                        $item['parent-uri-id'] = $parent['parent-uri-id'];
+                                       $item['parent-uri']    = $parent['parent-uri'];
                                }
                        }