explain what is happening here

This commit is contained in:
zotlabs 2017-06-20 17:13:04 -07:00
parent 08d9316d76
commit 7e4e2f28db

View File

@ -3584,6 +3584,9 @@ function import_author_zot($x) {
$hash = make_xchan_hash($x['guid'],$x['guid_sig']);
// also - this function may get passed a profile url as 'url' and zot_refresh wants a hubloc_url (site baseurl),
// so deconstruct the url (if we have one) and rebuild it with just the baseurl components.
if(array_key_exists('url',$x)) {
$m = parse_url($x['url']);
$desturl = $m['scheme'] . '://' . $m['host'];