aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-07-24 20:44:55 +0000
committerMario <mario@mariovavti.com>2020-07-24 20:44:55 +0000
commitea5131db88f0be0bba976f19d645d9a59bc3dccd (patch)
treece752343bd2c0b6ce68c308c569912b672ed42d8 /include
parent29c5a65e8f773b2acd63b4f378a749bdb686bb9a (diff)
downloadvolse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.tar.gz
volse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.tar.bz2
volse-hubzilla-ea5131db88f0be0bba976f19d645d9a59bc3dccd.zip
construct hubloc_id_url for imported legacy zot hublocs
Diffstat (limited to 'include')
-rw-r--r--include/zot.php5
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]
]
);