diff options
author | Mario <mario@mariovavti.com> | 2020-12-15 08:36:14 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-17 14:24:16 +0100 |
commit | b24e691e7e32b2cfa5256c0dfeabd536f29401b1 (patch) | |
tree | 2627399fd2c3a1b9e4e2147b13980e523886772c /include | |
parent | c2e43dc1b0a88a27c0ae3af45bcbdfbae8c9f50c (diff) | |
download | volse-hubzilla-b24e691e7e32b2cfa5256c0dfeabd536f29401b1.tar.gz volse-hubzilla-b24e691e7e32b2cfa5256c0dfeabd536f29401b1.tar.bz2 volse-hubzilla-b24e691e7e32b2cfa5256c0dfeabd536f29401b1.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
(cherry picked from commit dec4ceabb5e036dfdab50f499dd2a26fe4eeebf7)
Diffstat (limited to 'include')
-rw-r--r-- | include/hubloc.php | 4 |
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); } |