mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
We can now manage relay servers and can send content to them
This commit is contained in:
parent
ca624ec612
commit
178455928a
6 changed files with 226 additions and 3 deletions
|
@ -786,6 +786,11 @@ class Notifier
|
|||
|
||||
if ($target_item['origin']) {
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxes($target_item, $uid);
|
||||
|
||||
if (in_array($target_item['private'], [Item::PUBLIC])) {
|
||||
$inboxes = ActivityPub\Transmitter::addRelayServerInboxes($inboxes);
|
||||
}
|
||||
|
||||
Logger::log('Origin item ' . $target_item['id'] . ' with URL ' . $target_item['uri'] . ' will be distributed.', Logger::DEBUG);
|
||||
} elseif (Item::isForumPost($target_item, $owner)) {
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxes($target_item, $uid, false, 0, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue