mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +00:00
Sending direct messages via AP does work now - receiving is pending
This commit is contained in:
parent
4161f5ebe0
commit
87b98b8249
5 changed files with 113 additions and 4 deletions
|
@ -30,6 +30,10 @@ class APDelivery extends BaseObject
|
|||
$success = true;
|
||||
|
||||
if ($cmd == Delivery::MAIL) {
|
||||
$data = ActivityPub\Transmitter::createActivityFromMail($target_id);
|
||||
if (!empty($data)) {
|
||||
$success = HTTPSignature::transmit($data, $inbox, $uid);
|
||||
}
|
||||
} elseif ($cmd == Delivery::SUGGESTION) {
|
||||
$success = ActivityPub\Transmitter::sendContactSuggestion($uid, $inbox, $target_id);
|
||||
} elseif ($cmd == Delivery::RELOCATION) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue