From e9125ce06534736290e461508b5f5092ca73b02d Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 25 Aug 2013 20:17:45 -0700 Subject: try to fix bad addresses that got into the network --- include/zot.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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) -- cgit v1.2.3