]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
New function to fetch the database driver
[friendica.git] / 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;
                }