try to fix bad addresses that got into the network
This commit is contained in:
parent
7546117388
commit
e9125ce065
@ -444,6 +444,8 @@ function import_xchan($arr) {
|
|||||||
if(! array_key_exists('connect_url', $arr))
|
if(! array_key_exists('connect_url', $arr))
|
||||||
$arr['connect_url'] = '';
|
$arr['connect_url'] = '';
|
||||||
|
|
||||||
|
if(strpos($arr['address'],'/') !== false)
|
||||||
|
$arr['address'] = substr($arr['address'],0,strpos($arr['address'],'/'));
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
if($r[0]['xchan_photo_date'] != $arr['photo_updated'])
|
if($r[0]['xchan_photo_date'] != $arr['photo_updated'])
|
||||||
@ -466,6 +468,7 @@ function import_xchan($arr) {
|
|||||||
else
|
else
|
||||||
$new_flags = $r[0]['xchan_flags'];
|
$new_flags = $r[0]['xchan_flags'];
|
||||||
|
|
||||||
|
|
||||||
if(($r[0]['xchan_name_date'] != $arr['name_updated'])
|
if(($r[0]['xchan_name_date'] != $arr['name_updated'])
|
||||||
|| ($r[0]['xchan_connurl'] != $arr['connections_url'])
|
|| ($r[0]['xchan_connurl'] != $arr['connections_url'])
|
||||||
|| ($r[0]['xchan_flags'] != $new_flags)
|
|| ($r[0]['xchan_flags'] != $new_flags)
|
||||||
|
Reference in New Issue
Block a user