diff options
author | Mario <mario@mariovavti.com> | 2024-01-25 10:13:10 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-25 10:13:10 +0000 |
commit | c0a7dfe2f6554fc66e753c456551dd580c479820 (patch) | |
tree | 2a5fe12284f8c2bfd44eb9e2af19fc9ef4e65cb4 /Zotlabs/Lib/Libzot.php | |
parent | fe50d78a0f3d7655cd5eefb7cdae44779c52b2b1 (diff) | |
download | volse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.tar.gz volse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.tar.bz2 volse-hubzilla-c0a7dfe2f6554fc66e753c456551dd580c479820.zip |
refactor fetch_and_store_parents() and inroduce the fetchparents daemon
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 15 |
1 files changed, 2 insertions, 13 deletions
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'] . '"'); |