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
|
@ -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 New Issue
Block a user