Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts: include/zot.php
This commit is contained in:
+13
-3
@@ -294,9 +294,19 @@ function zot_refresh($them, $channel = null, $force = false) {
|
||||
if ($them['hubloc_url']) {
|
||||
$url = $them['hubloc_url'];
|
||||
} else {
|
||||
$r = q("select hubloc_url, hubloc_primary from hubloc where hubloc_hash = '%s'",
|
||||
dbesc($them['xchan_hash'])
|
||||
);
|
||||
$r = null;
|
||||
|
||||
if(array_key_exists('xchan_addr',$them) && $them['xchan_addr']) {
|
||||
$r = q("select hubloc_url, hubloc_primary from hubloc where hubloc_addr = '%s'",
|
||||
dbesc($them['xchan_addr'])
|
||||
);
|
||||
}
|
||||
if(! $r) {
|
||||
$r = q("select hubloc_url, hubloc_primary from hubloc where hubloc_hash = '%s'",
|
||||
dbesc($them['xchan_hash'])
|
||||
);
|
||||
}
|
||||
|
||||
if ($r) {
|
||||
foreach ($r as $rr) {
|
||||
if (intval($rr['hubloc_primary'])) {
|
||||
|
||||
Reference in New Issue
Block a user