- * @param string $cmd
- * @param integer $target_id
- * @param string|array $inboxes
- * @param integer $uid
- * @param array $receivers
- * @throws \Friendica\Network\HTTPException\InternalServerErrorException
- * @throws \ImagickException
- */
- public static function execute(string $cmd, int $target_id, $inboxes, int $uid, array $receivers = [])
- {
- if (is_string($inboxes)) {
- $inboxes = [$inboxes];
- }
-
- foreach ($inboxes as $inbox) {
- self::perform($cmd, $target_id, $inbox, $uid, $receivers);
- }
- }
-
- /**
- * Delivers ActivityPub messages
- *
- * @param string $cmd
- * @param integer $target_id
- * @param string $inbox
- * @param integer $uid
- * @param array $receivers
+ * @param string $cmd One of the Worker\Delivery constant values
+ * @param integer $item_id 0 if no item is involved (like Delivery::REMOVAL and Delivery::PROFILEUPDATE)
+ * @param string $inbox The URL of the recipient profile
+ * @param integer $uid The ID of the user who triggered this delivery
+ * @param array $receivers The contact IDs related to the inbox URL for contact archival housekeeping
+ * @param int $uri_id URI-ID of item to be transmitted