don't import any hubloc that doesn't have a sitekey. Eventually we should also verify that it is a valid key, as we've already seen one case where one character got mangled and messed up communication.

This commit is contained in:
friendica 2013-08-11 16:12:40 -07:00
parent d8d45dab76
commit 5aa508dba7
2 changed files with 8 additions and 3 deletions

View File

@ -583,9 +583,14 @@ function import_xchan($arr) {
intval(HUBLOC_FLAGS_PRIMARY),
intval($r[0]['hubloc_id'])
);
update_modtime($xchan_hash);
$changed = true;
}
update_modtime($xchan_hash);
$changed = true;
continue;
}
if(! $location['sitekey']) {
logger('import_xchan: empty hubloc sitekey. ' . print_r($location,true));
continue;
}

View File

@ -1 +1 @@
2013-08-09.400
2013-08-11.402