mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
We now use a central function for fetching the postdata
This commit is contained in:
parent
f8b8a5a52b
commit
b4c673a620
7 changed files with 21 additions and 6 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
/**
|
||||
* ActivityPub Inbox
|
||||
|
@ -22,7 +23,7 @@ class Inbox extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
$postdata = file_get_contents('php://input');
|
||||
$postdata = Network::postdata();
|
||||
|
||||
if (empty($postdata)) {
|
||||
throw new \Friendica\Network\HTTPException\BadRequestException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue