aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-29 10:33:13 +0000
committerMario <mario@mariovavti.com>2024-01-29 10:33:13 +0000
commit29489f62cfc27705a0993532929c244d9d99b7bf (patch)
tree665cbe3c1dfc80b92278223e677d503e42d979fd /Zotlabs/Lib/Libzot.php
parent09465619e53c9c0a04ee73cecc3fc2d87ee74d55 (diff)
downloadvolse-hubzilla-29489f62cfc27705a0993532929c244d9d99b7bf.tar.gz
volse-hubzilla-29489f62cfc27705a0993532929c244d9d99b7bf.tar.bz2
volse-hubzilla-29489f62cfc27705a0993532929c244d9d99b7bf.zip
introduce Activity::init_background_fetch() and refactor zotconvo to implement it
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 4a327e24f..70ca2d84b 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -2,6 +2,7 @@
namespace Zotlabs\Lib;
+use App;
use Zotlabs\Web\HTTPSig;
use Zotlabs\Access\Permissions;
use Zotlabs\Access\PermissionLimits;
@@ -1321,6 +1322,9 @@ class Libzot {
if ($result) {
$return = array_merge($return, $result);
}
+
+ Activity::init_background_fetch();
+
return $return;
}
@@ -1672,10 +1676,12 @@ class Libzot {
}
if ($arr['verb'] === 'Announce') {
- Master::Summon(['Fetchparents', $channel['channel_id'], $sender, $arr['mid'], true]);
+ App::$cache['as_fetch_objects'][$arr['mid']]['channels'][] = $channel['channel_id'];
+ App::$cache['as_fetch_objects'][$arr['mid']]['force'] = true;
}
else {
- Master::Summon(['Zotconvo', $channel['channel_id'], $arr['parent_mid']]);
+ App::$cache['zot_fetch_objects'][$arr['mid']]['channels'][] = $channel['channel_id'];
+ App::$cache['zot_fetch_objects'][$arr['mid']]['force'] = false;
}
continue;
@@ -2977,7 +2983,7 @@ class Libzot {
$ret['site']['admin'] = get_config('system', 'admin_email');
$visible_plugins = [];
- if (is_array(\App::$plugins) && count(\App::$plugins)) {
+ if (is_array(App::$plugins) && count(App::$plugins)) {
$r = q("select * from addon where hidden = 0");
if ($r)
foreach ($r as $rr)