]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
remote-self: Seting the author name to the owner name
[friendica.git] / include / onepoll.php
index 15b8e7c2cc20c2679f04cfe2e1408585aed071a4..9052937fdca03d05bd713107d70b9742edd35389 100644 (file)
@@ -58,7 +58,7 @@ function onepoll_run(&$argv, &$argc){
        }
 
        // Test
-       $lockpath = get_config('system','lockpath');
+       $lockpath = get_lockpath();
        if ($lockpath != '') {
                $pidfile = new pidfile($lockpath, 'onepoll'.$contact_id);
                if($pidfile->is_already_running()) {
@@ -330,6 +330,8 @@ function onepoll_run(&$argv, &$argc){
                                                logger("Mail: Parsing mail ".$msg_uid, LOGGER_DATA);
 
                                                $datarray = array();
+                                               $datarray['verb'] = ACTIVITY_POST;
+                                               $datarray['object-type'] = ACTIVITY_OBJ_NOTE;
        //                                      $meta = email_msg_meta($mbox,$msg_uid);
        //                                      $headers = email_msg_headers($mbox,$msg_uid);