couple of frphoto fixes to work better with the dreamhost process reaper
This commit is contained in:
parent
50da5bd389
commit
40667e72ad
@ -41,6 +41,14 @@ function frphotos_init(&$a) {
|
|||||||
$total = 0;
|
$total = 0;
|
||||||
if(count($j)) {
|
if(count($j)) {
|
||||||
foreach($j as $jj) {
|
foreach($j as $jj) {
|
||||||
|
|
||||||
|
$r = q("select uid from photo where resource_id = '%s' and uid = %d limit 1",
|
||||||
|
dbesc($jj),
|
||||||
|
intval($channel['channel_id'])
|
||||||
|
);
|
||||||
|
if($r)
|
||||||
|
continue;
|
||||||
|
|
||||||
$total ++;
|
$total ++;
|
||||||
proc_run('php','util/frphotohelper.php',$jj, $channel['channel_address'], urlencode($fr_server));
|
proc_run('php','util/frphotohelper.php',$jj, $channel['channel_address'], urlencode($fr_server));
|
||||||
sleep(3);
|
sleep(3);
|
||||||
|
@ -60,7 +60,6 @@ $cookies = 'store/[data]/frphoto_cookie_' . $channel_address;
|
|||||||
intval($channel['channel_id'])
|
intval($channel['channel_id'])
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
logger('frphotohelper: duplicate photo ignored');
|
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user