]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
See issue 1491: We need to generate a new guid to make Diaspora work
[friendica.git] / include / onepoll.php
index c0c2f1a34bbf13db868a2365725a6d29a99400eb..90d018524d13aae89bf653dc3cdfb81b9a3f04f2 100644 (file)
@@ -19,10 +19,10 @@ function onepoll_run(&$argv, &$argc){
 
        if(is_null($db)) {
            @include(".htconfig.php");
-       require_once("include/dba.php");
+       require_once("include/dba.php");
            $db = new dba($db_host, $db_user, $db_pass, $db_data);
-       unset($db_host, $db_user, $db_pass, $db_data);
-       };
+       unset($db_host, $db_user, $db_pass, $db_data);
+       };
 
 
        require_once('include/session.php');
@@ -110,7 +110,7 @@ function onepoll_run(&$argv, &$argc){
        // - Check why we don't poll the Diaspora feed at the moment (some guid problem in the items?)
        // - Check whether this is possible with Redmatrix
        if ($contact["network"] == NETWORK_DIASPORA) {
-               if (poco_do_update($contact["last-item"], $contact["success_update"], $contact["failure_update"])) {
+               if (poco_do_update($contact["created"], $contact["last-item"], $contact["failure_update"], $contact["success_update"])) {
                        $last_updated = poco_last_updated($contact["url"]);
                        $updated = datetime_convert();
                        if ($last_updated) {