X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fonepoll.php;h=9052937fdca03d05bd713107d70b9742edd35389;hb=15f43d8ca3be780e6ee7117696acaa7e198a096a;hp=49047118a4b20c3fe96b3a255518657cd0c85de2;hpb=29092ace4428aeb796b31856aafa14cef1632bac;p=friendica.git diff --git a/include/onepoll.php b/include/onepoll.php index 49047118a4..9052937fdc 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -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);