diff options
author | Mario <mario@mariovavti.com> | 2023-04-21 10:34:55 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-04-21 10:34:55 +0000 |
commit | 84e25e8fd2e321c6d40230d737bf5dd495f1da0c (patch) | |
tree | f51285aee4b247866910cee7c316b77ce655ea81 /Zotlabs/Daemon | |
parent | 39e14eb95c0b88c6905c50816149d13a0c9746e9 (diff) | |
download | volse-hubzilla-84e25e8fd2e321c6d40230d737bf5dd495f1da0c.tar.gz volse-hubzilla-84e25e8fd2e321c6d40230d737bf5dd495f1da0c.tar.bz2 volse-hubzilla-84e25e8fd2e321c6d40230d737bf5dd495f1da0c.zip |
Fetch conversations in the background. Otherwise it might sgnificantly delay delivery
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Zotconvo.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Zotconvo.php b/Zotlabs/Daemon/Zotconvo.php new file mode 100644 index 000000000..3d6162473 --- /dev/null +++ b/Zotlabs/Daemon/Zotconvo.php @@ -0,0 +1,31 @@ +<?php + +namespace Zotlabs\Daemon; + +use Zotlabs\Lib\Libzot; + +class Zotconvo { + + static public function run($argc, $argv) { + + logger('Zotconvo invoked: ' . print_r($argv, true)); + + if ($argc != 3) { + return; + } + + $channel_id = intval($argv[1]); + $mid = $argv[2]; + + $channel = channelx_by_n($channel_id); + + if (!$channel) { + return; + } + + Libzot::fetch_conversation($channel, $mid); + + return; + + } +} |