Merge pull request #8820 from annando/fix-author-network

Fix notice "Undefined index: author-network"
pull/8822/head
Hypolite Petovan 2 years ago committed by GitHub
commit 3b701371ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Worker/Notifier.php

@ -166,7 +166,7 @@ class Notifier
if (!empty($target_item) && !empty($items)) {
$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"]];
$thr_parent = Item::selectFirst($fields, $condition);
if (empty($thr_parent)) {

Loading…
Cancel
Save