Fix several warnings and errors

This commit is contained in:
Michael 2019-10-30 06:50:20 +00:00
parent d6ff89d7b4
commit dc065eed42
3 changed files with 8 additions and 4 deletions

View file

@ -152,6 +152,9 @@ class Notifier
$fields = ['network', 'author-id', 'author-link', 'owner-id'];
$condition = ['uri' => $target_item["thr-parent"], 'uid' => $target_item["uid"]];
$thr_parent = Item::selectFirst($fields, $condition);
if (empty($thr_parent)) {
$thr_parent = $parent;
}
Logger::log('GUID: ' . $target_item["guid"] . ': Parent is ' . $parent['network'] . '. Thread parent is ' . $thr_parent['network'], Logger::DEBUG);