aboutsummaryrefslogtreecommitdiffstats
path: root/include/hubloc.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-12-15 08:36:14 +0000
committerMario <mario@mariovavti.com>2020-12-15 08:36:14 +0000
commitdec4ceabb5e036dfdab50f499dd2a26fe4eeebf7 (patch)
treefddd60e34f93db0c3861f7bd0de53cf646ec6047 /include/hubloc.php
parent4a902dbbbe79a59d6e434ddb39ff24af93583da3 (diff)
downloadvolse-hubzilla-dec4ceabb5e036dfdab50f499dd2a26fe4eeebf7.tar.gz
volse-hubzilla-dec4ceabb5e036dfdab50f499dd2a26fe4eeebf7.tar.bz2
volse-hubzilla-dec4ceabb5e036dfdab50f499dd2a26fe4eeebf7.zip
try to fix more hubloc anomalies: use refresh_all in remove_obsolete_hublocs() and use Libzot::encode_locations() instead of zot_encode_locations() in notifier
Diffstat (limited to 'include/hubloc.php')
-rw-r--r--include/hubloc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hubloc.php b/include/hubloc.php
index 6ab426a10..e803b7852 100644
--- a/include/hubloc.php
+++ b/include/hubloc.php
@@ -4,6 +4,8 @@
* @brief Hubloc related functions.
*/
+use Zotlabs\Daemon\Master;
+
/**
* @brief Create an array for hubloc table and insert record.
*
@@ -163,7 +165,7 @@ function remove_obsolete_hublocs() {
dbesc($rr['hubloc_hash'])
);
if($x) {
- Zotlabs\Daemon\Master::Summon(array('Notifier', 'location', $x[0]['channel_id']));
+ Master::Summon(array('Notifier', 'refresh_all', $x[0]['channel_id']));
if($interval)
@time_sleep_until(microtime(true) + (float) $interval);
}