Fix notice "Undefined index: author-network"

This commit is contained in:
Michael 2020-06-27 15:10:06 +00:00
parent de19f94aca
commit 64dc3519a4

View File

@ -166,7 +166,7 @@ class Notifier
if (!empty($target_item) && !empty($items)) { if (!empty($target_item) && !empty($items)) {
$parent = $items[0]; $parent = $items[0];
$fields = ['network', 'author-id', 'author-link', 'owner-id']; $fields = ['network', 'author-id', 'author-link', 'author-network', 'owner-id'];
$condition = ['uri' => $target_item["thr-parent"], 'uid' => $target_item["uid"]]; $condition = ['uri' => $target_item["thr-parent"], 'uid' => $target_item["uid"]];
$thr_parent = Item::selectFirst($fields, $condition); $thr_parent = Item::selectFirst($fields, $condition);
if (empty($thr_parent)) { if (empty($thr_parent)) {