Direkt delivery is done
This commit is contained in:
parent
5310d54c13
commit
59cd6611ec
|
@ -414,7 +414,25 @@ class Notifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$inboxes = ActivityPub::fetchTargetInboxes($target_item);
|
$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 ($parent['origin']) {
|
||||||
|
$parent_inboxes = ActivityPub::fetchTargetInboxes($parent);
|
||||||
|
$inboxes = array_merge($inboxes, $parent_inboxes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($inboxes as $inbox) {
|
foreach ($inboxes as $inbox) {
|
||||||
logger('Deliver ' . $item_id .' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
|
logger('Deliver ' . $item_id .' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user