aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-25 20:17:45 -0700
committerfriendica <info@friendica.com>2013-08-25 20:17:45 -0700
commite9125ce06534736290e461508b5f5092ca73b02d (patch)
tree60bb62d8fe783136ed12eac8442faedd2bd816ca /include/zot.php
parent754611738865eacba7f4acc235c03bad85dfa2c3 (diff)
downloadvolse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.tar.gz
volse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.tar.bz2
volse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.zip
try to fix bad addresses that got into the network
Diffstat (limited to 'include/zot.php')
-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)