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
|
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