]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_notify.php
Worker fastlane can now be activated from the admin interface
[friendica.git] / mod / dfrn_notify.php
index 04500e89ad24e71d77da91562970d7367db7487f..780fb456f5cd33f43e7bc6783196fd15e55570f1 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 
 require_once('include/items.php');
+require_once('include/dfrn.php');
 require_once('include/event.php');
 
 require_once('library/defuse/php-encryption-1.2.1/Crypto.php');
 
-if(! function_exists('dfrn_notify_post')) {
 function dfrn_notify_post(&$a) {
     logger(__function__, LOGGER_TRACE);
        $dfrn_id      = ((x($_POST,'dfrn_id'))      ? notags(trim($_POST['dfrn_id']))   : '');
@@ -209,14 +209,13 @@ function dfrn_notify_post(&$a) {
                logger('rino: decrypted data: ' . $data, LOGGER_DATA);
        }
 
-       $ret = local_delivery($importer,$data);
+       $ret = dfrn::import($data, $importer);
        xml_status($ret);
 
        // NOTREACHED
 }
-}
 
-if(! function_exists('dfrn_notify_content')) {
+
 function dfrn_notify_content(&$a) {
 
        if(x($_GET,'dfrn_id')) {
@@ -340,5 +339,5 @@ function dfrn_notify_content(&$a) {
 
                killme();
        }
-}
+
 }