diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-20 17:13:04 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-06-20 17:13:04 -0700 |
commit | 7e4e2f28dbc52316f4cef7c17a7c9e6ec7f607dc (patch) | |
tree | 04eff4c406ba1b64b6cfe4744beff418bb7c9cfc /include/zot.php | |
parent | 08d9316d763defc0fc2f408de6baff9e79853863 (diff) | |
download | volse-hubzilla-7e4e2f28dbc52316f4cef7c17a7c9e6ec7f607dc.tar.gz volse-hubzilla-7e4e2f28dbc52316f4cef7c17a7c9e6ec7f607dc.tar.bz2 volse-hubzilla-7e4e2f28dbc52316f4cef7c17a7c9e6ec7f607dc.zip |
explain what is happening here
Diffstat (limited to 'include/zot.php')
-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 9261b0ebb..4c180ee59 100644 --- a/include/zot.php +++ b/include/zot.php @@ -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']; |