From: Hypolite Petovan Date: Sun, 20 Nov 2022 18:01:37 +0000 (-0500) Subject: Use guid from shared post in Protocol\Diaspora::getReshareDetails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d4bb5223a4587d2fe94932dd114756b00737847d;p=friendica.git Use guid from shared post in Protocol\Diaspora::getReshareDetails - Address https://github.com/friendica/friendica/issues/11993#issuecomment-1321194769 --- 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'], ]; }