spegling av
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02: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:
förälder
eec48057dc
incheckning
d4bb5223a4
1 ändrade filer med 2 tillägg och 2 borttagningar
|
@ -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'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Laddar…
Lägg till tabell
Lägg till en länk
Hänvisa till i nytt ärende