]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
Generate preview pictures from enclosed data from feeds.
[friendica.git] / include / onepoll.php
index 49047118a4b20c3fe96b3a255518657cd0c85de2..9052937fdca03d05bd713107d70b9742edd35389 100644 (file)
@@ -58,9 +58,9 @@ function onepoll_run(&$argv, &$argc){
        }
 
        // Test
-       $lockpath = get_config('system','lockpath');
+       $lockpath = get_lockpath();
        if ($lockpath != '') {
-               $pidfile = new pidfile($lockpath, 'onepoll'.$contact_id.'.lck');
+               $pidfile = new pidfile($lockpath, 'onepoll'.$contact_id);
                if($pidfile->is_already_running()) {
                        logger("onepoll: Already running for contact ".$contact_id);
                        exit;
@@ -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);