use Friendica\BaseObject;
use Friendica\Protocol\ActivityPub;
use Friendica\Model\Item;
+use Friendica\Util\HTTPSignature;
class APDelivery extends BaseObject
{
- public static function execute($cmd, $item_id, $inbox)
+ public static function execute($cmd, $item_id, $inbox, $uid)
{
logger('Invoked: ' . $cmd . ': ' . $item_id . ' to ' . $inbox, LOGGER_DEBUG);
} elseif ($cmd == Delivery::SUGGESTION) {
} elseif ($cmd == Delivery::RELOCATION) {
} else {
- $item = Item::selectFirst(['uid'], ['id' => $item_id]);
$data = ActivityPub::createActivityFromItem($item_id);
- ActivityPub::transmit($data, $inbox, $item['uid']);
+ HTTPSignature::transmit($data, $inbox, $uid);
}
return;