From 1ef9768b98be372531c9fce1adf118617cabd253 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 8 Jan 2023 13:00:58 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Philipp --- src/Module/OStatus/PubSub.php | 2 +- src/Module/OStatus/PubSubHubBub.php | 2 +- src/Module/OStatus/Salmon.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module/OStatus/PubSub.php b/src/Module/OStatus/PubSub.php index c4614855c..5fbc52983 100644 --- a/src/Module/OStatus/PubSub.php +++ b/src/Module/OStatus/PubSub.php @@ -58,7 +58,7 @@ class PubSub extends \Friendica\BaseModule $this->logger->info('Feed arrived.', ['from' => $this->request->getRemoteAddress(), 'for' => $this->args->getCommand(), 'user-agent' => $this->server['HTTP_USER_AGENT']]); $this->logger->debug('Data stream.', ['xml' => $xml]); - $this->logger->debug('Gut request data.', ['request' => $request]); + $this->logger->debug('Got request data.', ['request' => $request]); $nickname = $this->parameters['nickname'] ?? ''; $contact_id = $this->parameters['cid'] ?? 0; diff --git a/src/Module/OStatus/PubSubHubBub.php b/src/Module/OStatus/PubSubHubBub.php index de2104b21..caaa31f98 100644 --- a/src/Module/OStatus/PubSubHubBub.php +++ b/src/Module/OStatus/PubSubHubBub.php @@ -71,7 +71,7 @@ class PubSubHubBub extends \Friendica\BaseModule throw new HTTPException\ForbiddenException(); } - $this->logger->debug('Gut request data.', ['request' => $request]); + $this->logger->debug('Got request data.', ['request' => $request]); // Subscription request from subscriber // https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html#rfc.section.5.1 diff --git a/src/Module/OStatus/Salmon.php b/src/Module/OStatus/Salmon.php index 64dcec22c..889d852d9 100644 --- a/src/Module/OStatus/Salmon.php +++ b/src/Module/OStatus/Salmon.php @@ -65,7 +65,7 @@ class Salmon extends \Friendica\BaseModule protected function post(array $request = []) { $xml = Network::postdata(); - $this->logger->debug('Gut request data.', ['request' => $request]); + $this->logger->debug('Got request data.', ['request' => $request]); $nickname = $this->parameters['nickname'] ?? ''; if (empty($nickname)) {