From c0a7dfe2f6554fc66e753c456551dd580c479820 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 25 Jan 2024 10:13:10 +0000 Subject: refactor fetch_and_store_parents() and inroduce the fetchparents daemon --- Zotlabs/Lib/Libzot.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'Zotlabs/Lib/Libzot.php') diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 265bcb376..4a327e24f 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1672,24 +1672,13 @@ class Libzot { } if ($arr['verb'] === 'Announce') { - - // TODO: move this to background - - if (!Activity::fetch_and_store_parents($channel, $sender, $arr, true)) { - continue; - } - - $parent = q("select * from item where mid = '%s' and uid = %d limit 1", - dbesc($arr['parent_mid']), - intval($channel['channel_id']) - ); - + Master::Summon(['Fetchparents', $channel['channel_id'], $sender, $arr['mid'], true]); } else { Master::Summon(['Zotconvo', $channel['channel_id'], $arr['parent_mid']]); - continue; } + continue; } logger('checking source: "' . $arr['mid'] . '" != "' . $arr['parent_mid'] . '"'); -- cgit v1.2.3