mirror of
https://github.com/friendica/friendica
synced 2025-04-30 05:04:22 +02:00
Deliver everything to all receivers in the thread
This commit is contained in:
parent
59cd6611ec
commit
4c224fbddd
2 changed files with 28 additions and 21 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue