diff options
author | friendica <info@friendica.com> | 2013-08-25 20:17:45 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-25 20:17:45 -0700 |
commit | e9125ce06534736290e461508b5f5092ca73b02d (patch) | |
tree | 60bb62d8fe783136ed12eac8442faedd2bd816ca | |
parent | 754611738865eacba7f4acc235c03bad85dfa2c3 (diff) | |
download | volse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.tar.gz volse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.tar.bz2 volse-hubzilla-e9125ce06534736290e461508b5f5092ca73b02d.zip |
try to fix bad addresses that got into the network
-rw-r--r-- | include/zot.php | 3 |
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) |