Added logging since this exixted before

This commit is contained in:
Michael 2019-03-17 13:56:47 +00:00
parent cec094c5b1
commit 75ec384fc3

View file

@ -270,6 +270,7 @@ class Processor
$item_private = !in_array(0, $activity['item_receiver']);
$parent = Item::selectFirst(['id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
if (!DBA::isResult($parent)) {
Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]);
return false;
}
if ($item_private && !$parent['private']) {