Added logging since this exixted before
This commit is contained in:
parent
cec094c5b1
commit
75ec384fc3
|
@ -270,6 +270,7 @@ class Processor
|
||||||
$item_private = !in_array(0, $activity['item_receiver']);
|
$item_private = !in_array(0, $activity['item_receiver']);
|
||||||
$parent = Item::selectFirst(['id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
|
$parent = Item::selectFirst(['id', 'private', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
|
||||||
if (!DBA::isResult($parent)) {
|
if (!DBA::isResult($parent)) {
|
||||||
|
Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($item_private && !$parent['private']) {
|
if ($item_private && !$parent['private']) {
|
||||||
|
|
Loading…
Reference in a new issue