mirror of
https://github.com/friendica/friendica
synced 2025-05-05 21:44:11 +02:00
Functionality is now split
This commit is contained in:
parent
4528d8748c
commit
3ab837f3c7
13 changed files with 71 additions and 1727 deletions
|
@ -19,11 +19,11 @@ class APDelivery extends BaseObject
|
|||
} elseif ($cmd == Delivery::SUGGESTION) {
|
||||
} elseif ($cmd == Delivery::RELOCATION) {
|
||||
} elseif ($cmd == Delivery::REMOVAL) {
|
||||
ActivityPub::transmitProfileDeletion($uid, $inbox);
|
||||
ActivityPub\Transmitter::transmitProfileDeletion($uid, $inbox);
|
||||
} elseif ($cmd == Delivery::PROFILEUPDATE) {
|
||||
ActivityPub::transmitProfileUpdate($uid, $inbox);
|
||||
ActivityPub\Transmitter::transmitProfileUpdate($uid, $inbox);
|
||||
} else {
|
||||
$data = ActivityPub::createActivityFromItem($item_id);
|
||||
$data = ActivityPub\Transmitter::createActivityFromItem($item_id);
|
||||
if (!empty($data)) {
|
||||
HTTPSignature::transmit($data, $inbox, $uid);
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ class Notifier
|
|||
Contact::terminateFriendship($user, $contact, true);
|
||||
}
|
||||
|
||||
$inboxes = ActivityPub::fetchTargetInboxesforUser(0);
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser(0);
|
||||
foreach ($inboxes as $inbox) {
|
||||
logger('Account removal for user ' . $uid . ' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
|
||||
Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
|
||||
|
@ -425,11 +425,11 @@ class Notifier
|
|||
$inboxes = [];
|
||||
|
||||
if ($target_item['origin']) {
|
||||
$inboxes = ActivityPub::fetchTargetInboxes($target_item, $uid);
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxes($target_item, $uid);
|
||||
}
|
||||
|
||||
if ($parent['origin']) {
|
||||
$parent_inboxes = ActivityPub::fetchTargetInboxes($parent, $uid);
|
||||
$parent_inboxes = ActivityPub\Transmitter::fetchTargetInboxes($parent, $uid);
|
||||
$inboxes = array_merge($inboxes, $parent_inboxes);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ class ProfileUpdate {
|
|||
|
||||
$a = BaseObject::getApp();
|
||||
|
||||
$inboxes = ActivityPub::fetchTargetInboxesforUser($uid);
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser($uid);
|
||||
|
||||
foreach ($inboxes as $inbox) {
|
||||
logger('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue