mirror of
https://github.com/friendica/friendica
synced 2025-04-23 16:30:12 +00:00
OStatus: Fix PubSubHubBub subscription
This commit is contained in:
parent
91bd03a75f
commit
c3d836db63
4 changed files with 12 additions and 7 deletions
|
@ -58,6 +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]);
|
||||
|
||||
$nickname = $this->parameters['nickname'] ?? '';
|
||||
$contact_id = $this->parameters['cid'] ?? 0;
|
||||
|
|
|
@ -71,6 +71,8 @@ class PubSubHubBub extends \Friendica\BaseModule
|
|||
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:
|
||||
|
|
|
@ -62,9 +62,10 @@ class Salmon extends \Friendica\BaseModule
|
|||
* @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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue