aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-21 02:21:44 -0700
committerfriendica <info@friendica.com>2013-03-21 02:21:44 -0700
commit4b22c6e531739d96fbe9c78f629aa34c35acb821 (patch)
tree4b114cb5d87fd1f081d64dc4105967862878c899 /include
parent9d6a4093baf805891d03eca871c6e3b5ff66eec3 (diff)
downloadvolse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.tar.gz
volse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.tar.bz2
volse-hubzilla-4b22c6e531739d96fbe9c78f629aa34c35acb821.zip
update
Diffstat (limited to 'include')
-rw-r--r--include/zot.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 909c4a2e8..814a694ac 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -417,6 +417,7 @@ function zot_register_hub($arr) {
function import_xchan($arr) {
$ret = array('success' => false);
+ $changed = false;
$xchan_hash = base64url_encode(hash('whirlpool',$arr['guid'] . $arr['guid_sig'], true));
$import_photos = false;
@@ -470,6 +471,7 @@ function import_xchan($arr) {
dbesc($xchan_hash)
);
update_modtime($xchan_hash);
+ $changed = true;
}
}
else {
@@ -492,6 +494,7 @@ function import_xchan($arr) {
dbesc($arr['name_updated'])
);
update_modtime($xchan_hash);
+ $changed = true;
}
@@ -510,6 +513,9 @@ function import_xchan($arr) {
dbesc($photos[3]),
dbesc($xchan_hash)
);
+
+ update_modtime($xchan_hash);
+ $changed = true;
}
// what we are missing for true hub independence is for any changes in the primary hub to
@@ -547,6 +553,7 @@ function import_xchan($arr) {
);
}
update_modtime($xchan_hash);
+ $changed = true;
continue;
}
@@ -574,6 +581,7 @@ function import_xchan($arr) {
dbesc($location['sitekey'])
);
update_modtime($xchan_hash);
+ $changed = true;
}
// get rid of any hubs we have for this channel which weren't reported.
@@ -585,12 +593,19 @@ function import_xchan($arr) {
intval($x['hubloc_id'])
);
update_modtime($xchan_hash);
+ $changed = true;
}
}
}
}
+ if($changed) {
+ // send out a directory mirror update packet if we're a directory server or some kind
+
+
+ }
+
if(! x($ret,'message')) {
$ret['success'] = true;
$ret['hash'] = $xchan_hash;