]> git.mxchange.org Git - friendica.git/commitdiff
Use guid from shared post in Protocol\Diaspora::getReshareDetails
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 20 Nov 2022 18:01:37 +0000 (13:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 20 Nov 2022 18:01:37 +0000 (13:01 -0500)
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1321194769

src/Protocol/Diaspora.php

index 09f4380b0b1eb5d7210f18052d38d4e89751b31a..4a42a5e0b2ddc254e4e9dcc1141cd6059198d63d 100644 (file)
@@ -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'],
                ];
        }