]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Notifier.php
Improvements to signature check, private posts do work now again
[friendica.git] / src / Worker / Notifier.php
index 3e73b5b5ed19bc86a6712244057685516ed1153c..286bcd03ee9be2e6afea22287fea902e11fe059c 100644 (file)
@@ -416,21 +416,13 @@ class Notifier
 
                $inboxes = [];
 
-               if ($followup) {
-                       $profile = ActivityPub::fetchprofile($parent['author-link']);
-                       if (!empty($profile)) {
-                               $target = defaults($profile, 'sharedinbox', $profile['inbox']);
-                               $inboxes[$target] = $target;
-                       }
-               } else {
-                       if ($target_item['origin']) {
-                               $inboxes = ActivityPub::fetchTargetInboxes($target_item);
-                       }
+               if ($target_item['origin']) {
+                       $inboxes = ActivityPub::fetchTargetInboxes($target_item, $uid);
+               }
 
-                       if ($parent['origin']) {
-                               $parent_inboxes = ActivityPub::fetchTargetInboxes($parent);
-                               $inboxes = array_merge($inboxes, $parent_inboxes);
-                       }
+               if ($parent['origin']) {
+                       $parent_inboxes = ActivityPub::fetchTargetInboxes($parent, $uid);
+                       $inboxes = array_merge($inboxes, $parent_inboxes);
                }
 
                foreach ($inboxes as $inbox) {