]> git.mxchange.org Git - friendica.git/blobdiff - mod/salmon.php
Improve Console/Config display for array values
[friendica.git] / mod / salmon.php
index 2b6014adf590b36d832130c53951396156dadb02..22da151cf8e1c93f44d3478fee2c1b0e23c6e129 100644 (file)
@@ -13,9 +13,11 @@ use Friendica\Util\Crypto;
 
 require_once 'include/items.php';
 
-function salmon_post(App $a) {
+function salmon_post(App $a, $xml = '') {
 
-       $xml = file_get_contents('php://input');
+       if (empty($xml)) {
+               $xml = file_get_contents('php://input');
+       }
 
        logger('new salmon ' . $xml, LOGGER_DATA);