aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-25 21:42:46 -0700
committerfriendica <info@friendica.com>2014-08-25 21:42:46 -0700
commiteb8f194419975a6cd3debba145c8769da055b8dc (patch)
treed33ca7dea3545703f4e65902f34bea270182d37b /include/zot.php
parent84ff380302764703dcc0bdf9ab5d69bac549726e (diff)
downloadvolse-hubzilla-eb8f194419975a6cd3debba145c8769da055b8dc.tar.gz
volse-hubzilla-eb8f194419975a6cd3debba145c8769da055b8dc.tar.bz2
volse-hubzilla-eb8f194419975a6cd3debba145c8769da055b8dc.zip
sort out some anomalies
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index a155b2588..65c092b93 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -198,11 +198,17 @@ function zot_finger($webbie,$channel,$autofallback = true) {
if($r) {
$url = $r[0]['hubloc_url'];
+
+ if($r[0]['hubloc_network'] && $r[0]['hubloc_network'] !== 'zot') {
+ logger('zot_finger: alternate network: ' . $webbie);
+ return array('success' => false);
+ }
}
else {
$url = 'https://' . $host;
}
-
+
+
$rhs = '/.well-known/zot-info';
$https = ((strpos($url,'https://') === 0) ? true : false);
@@ -271,6 +277,11 @@ function zot_finger($webbie,$channel,$autofallback = true) {
function zot_refresh($them,$channel = null, $force = false) {
+ if(array_key_exists('xchan_network',$them) && ($them['xchan_network'] !== 'zot')) {
+ logger('zot_refresh: not got zot. ' . $them['xchan_name']);
+ return true;
+ }
+
logger('zot_refresh: them: ' . print_r($them,true), LOGGER_DATA);
if($channel)
logger('zot_refresh: channel: ' . print_r($channel,true), LOGGER_DATA);