mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Use guid from shared post in Protocol\Diaspora::getReshareDetails
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1321194769
This commit is contained in:
parent
eec48057dc
commit
d4bb5223a4
1 changed files with 2 additions and 2 deletions
|
@ -3201,7 +3201,7 @@ class Diaspora
|
||||||
*/
|
*/
|
||||||
public static function getReshareDetails(array $item): array
|
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)) {
|
if (empty($reshared)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -3213,7 +3213,7 @@ class Diaspora
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'root_handle' => strtolower($reshared['post']['author-addr']),
|
'root_handle' => strtolower($reshared['post']['author-addr']),
|
||||||
'root_guid' => $reshared['guid']
|
'root_guid' => $reshared['post']['guid'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue