]> 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 1fa086312acd96ffee911e4c23d84e92eea3dfdb..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;
                }
 
@@ -789,7 +789,7 @@ class Notifier
                        $inboxes = ActivityPub\Transmitter::fetchTargetInboxes($target_item, $uid);
 
                        if (in_array($target_item['private'], [Item::PUBLIC])) {
-                               $relay_inboxes = ActivityPub\Transmitter::addRelayServerInboxes([]);
+                               $relay_inboxes = ActivityPub\Transmitter::addRelayServerInboxes();
                        }
 
                        Logger::log('Origin item ' . $target_item['id'] . ' with URL ' . $target_item['uri'] . ' will be distributed.', Logger::DEBUG);