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
commit 9751cadfbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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