mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Merge pull request #12226 from MrPetovan/bug/warnings
Use guid from shared post in Protocol\Diaspora::getReshareDetails
This commit is contained in:
commit
9751cadfbf
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue