From 666c55f93a224873429184f3df57d4e9ef93adaf Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 29 Sep 2020 20:12:19 +0000 Subject: [PATCH] Fix notive "Undefined index: author-network" --- src/Worker/Notifier.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 7e1489435a..d6cf0c2ff8 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -629,12 +629,12 @@ class Notifier } // Skip the delivery to Diaspora if the item is from an ActivityPub author - if ($item['author-network'] == Protocol::ACTIVITYPUB) { + if (!empty($item['author-network']) && ($item['author-network'] == Protocol::ACTIVITYPUB)) { return true; } // Skip the delivery to Diaspora if the thread parent is from an ActivityPub author - if ($thr_parent['author-network'] == Protocol::ACTIVITYPUB) { + if (!empty($thr_parent['author-network']) && ($thr_parent['author-network'] == Protocol::ACTIVITYPUB)) { return true; }