1
1
Fork 0

We now use a central function for fetching the postdata

This commit is contained in:
Michael 2019-07-30 22:26:01 +00:00
commit b4c673a620
7 changed files with 21 additions and 6 deletions

View file

@ -16,11 +16,12 @@ use Friendica\Model\User;
use Friendica\Protocol\DFRN;
use Friendica\Protocol\Diaspora;
use Friendica\Util\Strings;
use Friendica\Util\Network;
function dfrn_notify_post(App $a) {
Logger::log(__function__, Logger::TRACE);
$postdata = file_get_contents('php://input');
$postdata = Network::postdata();
if (empty($_POST) || !empty($postdata)) {
$data = json_decode($postdata);