Fix notices in Diaspora

This commit is contained in:
Michael 2020-11-17 22:52:16 +00:00
parent ba0d3b2435
commit 314a1291e4
1 changed files with 2 additions and 2 deletions

View File

@ -1185,7 +1185,7 @@ class Diaspora
private static function parentItem($uid, $guid, $author, array $contact) private static function parentItem($uid, $guid, $author, array $contact)
{ {
$fields = ['id', 'parent', 'body', 'wall', 'uri', 'guid', 'private', 'origin', $fields = ['id', 'parent', 'body', 'wall', 'uri', 'guid', 'private', 'origin',
'author-name', 'author-link', 'author-avatar', 'gravity', 'author-name', 'author-link', 'author-avatar', 'gravity', 'parent-uri',
'owner-name', 'owner-link', 'owner-avatar']; 'owner-name', 'owner-link', 'owner-avatar'];
$condition = ['uid' => $uid, 'guid' => $guid]; $condition = ['uid' => $uid, 'guid' => $guid];
$item = Item::selectFirst($fields, $condition); $item = Item::selectFirst($fields, $condition);
@ -2339,7 +2339,7 @@ class Diaspora
*/ */
private static function addReshareActivity($item, $parent_message_id, $guid, $author) private static function addReshareActivity($item, $parent_message_id, $guid, $author)
{ {
$parent = Item::selectFirst(['uri', 'guid'], ['id' => $parent_message_id]); $parent = Item::selectFirst(['uri', 'guid', 'parent-uri'], ['id' => $parent_message_id]);
$datarray = []; $datarray = [];