aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/zot.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 051fa5078..be5b0d9c0 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -444,6 +444,8 @@ function import_xchan($arr) {
if(! array_key_exists('connect_url', $arr))
$arr['connect_url'] = '';
+ if(strpos($arr['address'],'/') !== false)
+ $arr['address'] = substr($arr['address'],0,strpos($arr['address'],'/'));
if($r) {
if($r[0]['xchan_photo_date'] != $arr['photo_updated'])
@@ -466,6 +468,7 @@ function import_xchan($arr) {
else
$new_flags = $r[0]['xchan_flags'];
+
if(($r[0]['xchan_name_date'] != $arr['name_updated'])
|| ($r[0]['xchan_connurl'] != $arr['connections_url'])
|| ($r[0]['xchan_flags'] != $new_flags)