]> git.mxchange.org Git - friendica.git/blobdiff - mod/receive.php
Issue 7285: Perform duplicate check for item URI also with AP
[friendica.git] / mod / receive.php
index db1287ea6f1f804a8b6b784710ce5e01409beb07..182a1df8c51c345a933be30c517aec30904f3563 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Protocol\Diaspora;
+use Friendica\Util\Network;
 
 /**
  * @param App $a App
@@ -47,7 +48,7 @@ function receive_post(App $a)
        Logger::log('mod-diaspora: receiving post', Logger::DEBUG);
 
        if (empty($_POST['xml'])) {
-               $postdata = file_get_contents("php://input");
+               $postdata = Network::postdata();
                if ($postdata == '') {
                        throw new \Friendica\Network\HTTPException\InternalServerErrorException();
                }