Skip to content

Commit

Permalink
Merge pull request #8570 from annando/tag-notice
Browse files Browse the repository at this point in the history
Fix for "Undefined index: uri-id""
  • Loading branch information
MrPetovan committed May 4, 2020
2 parents 97f8ea2 + 11406fd commit 05cac4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocol/ActivityPub/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private static function processContent($activity, $item)

if (empty($activity['directmessage']) && ($item['thr-parent'] != $item['uri']) && ($item['gravity'] == GRAVITY_COMMENT)) {
$item_private = !in_array(0, $activity['item_receiver']);
$parent = Item::selectFirst(['id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
$parent = Item::selectFirst(['id', 'uri-id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
if (!DBA::isResult($parent)) {
Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]);
return false;
Expand Down

0 comments on commit 05cac4c

Please sign in to comment.