]> git.mxchange.org Git - friendica.git/commitdiff
Fix notive "Undefined index: author-network"
authorMichael <heluecht@pirati.ca>
Tue, 29 Sep 2020 20:12:19 +0000 (20:12 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 Sep 2020 20:12:19 +0000 (20:12 +0000)
src/Worker/Notifier.php

index 7e1489435ad20cf0ee37f1912dbdb5650b346633..d6cf0c2ff84aef4072bc131b26aa2497f4d0e54d 100644 (file)
@@ -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;
                }