$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]);
$nickname = $this->parameters['nickname'] ?? '';
$contact_id = $this->parameters['cid'] ?? 0;
throw new HTTPException\ForbiddenException();
}
+ $this->logger->debug('Gut request data.', ['request' => $request]);
+
// Subscription request from subscriber
// https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html#rfc.section.5.1
// Example from GNU Social:
* @throws HTTPException\OKException
* @throws \ImagickException
*/
- protected function rawContent(array $request = [])
+ protected function post(array $request = [])
{
$xml = Network::postdata();
+ $this->logger->debug('Gut request data.', ['request' => $request]);
$nickname = $this->parameters['nickname'] ?? '';
if (empty($nickname)) {
],
// OStatus stack modules
- '/ostatus/repair' => [Module\OStatus\Repair::class, [R::GET ]],
- '/ostatus/subscribe' => [Module\OStatus\Subscribe::class, [R::GET ]],
- '/poco' => [Module\User\PortableContacts::class, [R::GET ]],
- '/pubsub/{nickname}/{cid:\d+}' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
- '/pubsubhubbub/{nickname}' => [Module\OStatus\PubSubHubBub::class, [ R::POST]],
- '/salmon/{nickname}' => [Module\OStatus\Salmon::class, [ R::POST]],
+ '/ostatus/repair' => [Module\OStatus\Repair::class, [R::GET ]],
+ '/ostatus/subscribe' => [Module\OStatus\Subscribe::class, [R::GET ]],
+ '/poco' => [Module\User\PortableContacts::class, [R::GET ]],
+ '/pubsub' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
+ '/pubsub/{nickname}[/{cid:\d+}]' => [Module\OStatus\PubSub::class, [R::GET, R::POST]],
+ '/pubsubhubbub[/{nickname}]' => [Module\OStatus\PubSubHubBub::class, [ R::POST]],
+ '/salmon[/{nickname}]' => [Module\OStatus\Salmon::class, [ R::POST]],
'/search' => [
'[/]' => [Module\Search\Index::class, [R::GET ]],