mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Improve communication
This commit is contained in:
parent
b906b083bc
commit
214407bdc8
4 changed files with 49 additions and 29 deletions
|
@ -11,7 +11,7 @@ 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);
|
||||
|
||||
|
@ -19,9 +19,8 @@ class APDelivery extends BaseObject
|
|||
} elseif ($cmd == Delivery::SUGGESTION) {
|
||||
} elseif ($cmd == Delivery::RELOCATION) {
|
||||
} else {
|
||||
$item = Item::selectFirst(['uid'], ['id' => $item_id]);
|
||||
$data = ActivityPub::createActivityFromItem($item_id);
|
||||
HTTPSignature::transmit($data, $inbox, $item['uid']);
|
||||
HTTPSignature::transmit($data, $inbox, $uid);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue