1
1
Fork 0

Use guid from shared post in Protocol\Diaspora::getReshareDetails

- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1321194769
This commit is contained in:
Hypolite Petovan 2022-11-20 13:01:37 -05:00
parent eec48057dc
commit d4bb5223a4

View 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'],
];
}