From d4bb5223a4587d2fe94932dd114756b00737847d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 20 Nov 2022 13:01:37 -0500 Subject: [PATCH] Use guid from shared post in Protocol\Diaspora::getReshareDetails - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1321194769 --- src/Protocol/Diaspora.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index 09f4380b0b..4a42a5e0b2 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -3201,7 +3201,7 @@ class Diaspora */ public static function getReshareDetails(array $item): array { - $reshared = DI::contentItem()->getSharedPost($item, ['network', 'author-addr']); + $reshared = DI::contentItem()->getSharedPost($item, ['guid', 'network', 'author-addr']); if (empty($reshared)) { return []; } @@ -3213,7 +3213,7 @@ class Diaspora return [ 'root_handle' => strtolower($reshared['post']['author-addr']), - 'root_guid' => $reshared['guid'] + 'root_guid' => $reshared['post']['guid'], ]; } -- 2.39.5