Merge pull request #12226 from MrPetovan/bug/warnings

Use guid from shared post in Protocol\Diaspora::getReshareDetails
pull/12225/head
Tobias Diekershoff 2022-11-20 19:42:11 +01:00 zatwierdzone przez GitHub
commit 9751cadfbf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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'],
]; ];
} }