Merge pull request #12226 from MrPetovan/bug/warnings

Use guid from shared post in Protocol\Diaspora::getReshareDetails
This commit is contained in:
Tobias Diekershoff
2022-11-20 19:42:11 +01:00
committed by GitHub

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