this might make zot-id work as originally conceived complete with reverse magic auth. If it doesn't it will probably crash and burn every site involved in horrible ways. To test or not to test.... decisions. (Maybe tomorrow.)
This commit is contained in:
@@ -22,6 +22,17 @@ function magic_init(&$a) {
|
||||
intval(HUBLOC_FLAGS_PRIMARY)
|
||||
);
|
||||
}
|
||||
else {
|
||||
// See if we know anybody at the dest site that will unlock the door for us
|
||||
$b = explode('/',$dest);
|
||||
if(count($b) >= 2)
|
||||
$u = $b[0] . '//' . $b[2];
|
||||
$x = q("select xchan.xchan_url, hubloc.* from xchan left join hubloc on xchan_hash = hubloc_hash
|
||||
where hubloc_url = '%s' limit 1",
|
||||
dbesc($u)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if(! $x) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user