From 9587787089f516977a05f5a9ecc0ef7f38d1ba91 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 29 Sep 2022 14:13:39 +0000 Subject: [PATCH] Add uri as well --- src/Protocol/ActivityPub/Processor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index cadf98213..6fcce4a3a 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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']; } }