reversed args in update_modtime, incorrect ud_guid and ud_hash
This commit is contained in:
parent
74fb7d158b
commit
59094cda51
@ -221,8 +221,8 @@ function syncdirs($uid) {
|
||||
}
|
||||
}
|
||||
|
||||
$ud_hash = random_string();
|
||||
update_modtime($ud_hash,$hash,$p[0]['channel_address'] . '@' . get_app()->get_hostname(),1);
|
||||
$ud_hash = random_string() . '@' . get_app()->get_hostname();
|
||||
update_modtime($hash,$ud_hash,$p[0]['channel_address'] . '@' . get_app()->get_hostname(),1);
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ function directory_run($argv, $argc){
|
||||
|
||||
cli_startup();
|
||||
|
||||
if($argc != 2)
|
||||
if($argc < 2)
|
||||
return;
|
||||
|
||||
logger('directory update', LOGGER_DEBUG);
|
||||
|
@ -64,7 +64,7 @@ function poller_run($argv, $argc){
|
||||
$r = q("select channel_id from channel where channel_dirdate < UTC_TIMESTAMP() - INTERVAL 30 DAY");
|
||||
if($r) {
|
||||
foreach($r as $rr) {
|
||||
proc_run('php','include/directory.php',$rr['channel_id']);
|
||||
proc_run('php','include/directory.php',$rr['channel_id'],'ping');
|
||||
if($interval)
|
||||
@time_sleep_until(microtime(true) + (float) $interval);
|
||||
}
|
||||
|
@ -518,7 +518,7 @@ function zot_register_hub($arr) {
|
||||
|
||||
/**
|
||||
* @function import_xchan($arr,$ud_flags = 1)
|
||||
* Takes an associative array of a fecthed discovery packet and updates
|
||||
* Takes an associative array of a fetched discovery packet and updates
|
||||
* all internal data structures which need to be updated as a result.
|
||||
*
|
||||
* @param array $arr => json_decoded discovery packet
|
||||
|
Reference in New Issue
Block a user