diff options
author | Mario <mario@mariovavti.com> | 2020-07-24 20:44:55 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-07-24 20:44:55 +0000 |
commit | ea5131db88f0be0bba976f19d645d9a59bc3dccd (patch) | |
tree | ce752343bd2c0b6ce68c308c569912b672ed42d8 | |
parent | 29c5a65e8f773b2acd63b4f378a749bdb686bb9a (diff) | |
download | volse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.tar.gz volse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.tar.bz2 volse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.zip |
construct hubloc_id_url for imported legacy zot hublocs
-rw-r--r-- | include/zot.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index fb0804aa7..e10ef6fd7 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2763,6 +2763,8 @@ function sync_locations($sender, $arr, $absolute = false) { } logger('New hub: ' . $location['url']); + $addr_arr = explode('@', $location['address']); + $r = hubloc_store_lowlevel( [ 'hubloc_guid' => $sender['guid'], @@ -2777,7 +2779,8 @@ function sync_locations($sender, $arr, $absolute = false) { 'hubloc_callback' => $location['callback'], 'hubloc_sitekey' => $location['sitekey'], 'hubloc_updated' => datetime_convert(), - 'hubloc_connected' => datetime_convert() + 'hubloc_connected' => datetime_convert(), + 'hubloc_id_url' => $location['url'] . '/channel/' . $addr_arr[0] ] ); |