From: Michael Date: Wed, 3 Oct 2018 15:41:51 +0000 (+0000) Subject: Renamed functions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8841519c0dfae069aff6bee6325fa868e4b9b641;p=friendica.git Renamed functions --- diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 9bd9339ed7..d3fa45d361 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -337,7 +337,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) ); } else { if ($network == Protocol::ACTIVITYPUB) { - ActivityPub\Transmitter::transmitContactAccept($contact['url'], $contact['hub-verify'], $uid); + ActivityPub\Transmitter::sendContactAccept($contact['url'], $contact['hub-verify'], $uid); $pending = true; } else { $pending = false; @@ -394,7 +394,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) Group::addMember(User::getDefaultGroup($uid, $contact["network"]), $contact['id']); if ($network == Protocol::ACTIVITYPUB && $duplex) { - ActivityPub\Transmitter::transmitActivity('Follow', $contact['url'], $uid); + ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $uid); } // Let's send our user to the contact editor in case they want to diff --git a/src/Model/Contact.php b/src/Model/Contact.php index c7513567ac..3ffd5b2af5 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -557,10 +557,10 @@ class Contact extends BaseObject } elseif ($contact['network'] == Protocol::DIASPORA) { Diaspora::sendUnshare($user, $contact); } elseif ($contact['network'] == Protocol::ACTIVITYPUB) { - ActivityPub\Transmitter::transmitContactUndo($contact['url'], $user['uid']); + ActivityPub\Transmitter::sendContactUndo($contact['url'], $user['uid']); if ($dissolve) { - ActivityPub\Transmitter::transmitContactReject($contact['url'], $contact['hub-verify'], $user['uid']); + ActivityPub\Transmitter::sendContactReject($contact['url'], $contact['hub-verify'], $user['uid']); } } } @@ -1769,7 +1769,7 @@ class Contact extends BaseObject $ret = Diaspora::sendShare($a->user, $contact); logger('share returns: ' . $ret); } elseif ($contact['network'] == Protocol::ACTIVITYPUB) { - $ret = ActivityPub\Transmitter::transmitActivity('Follow', $contact['url'], $uid); + $ret = ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $uid); logger('Follow returns: ' . $ret); } } @@ -1846,7 +1846,7 @@ class Contact extends BaseObject } if ($contact['network'] == Protocol::ACTIVITYPUB) { - ActivityPub\Transmitter::transmitContactAccept($contact['url'], $contact['hub-verify'], $importer['uid']); + ActivityPub\Transmitter::sendContactAccept($contact['url'], $contact['hub-verify'], $importer['uid']); } // send email notification to owner? diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 69343d6661..8162605613 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -1,6 +1,6 @@