aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Zotconvo.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Daemon/Zotconvo.php')
-rw-r--r--Zotlabs/Daemon/Zotconvo.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/Zotlabs/Daemon/Zotconvo.php b/Zotlabs/Daemon/Zotconvo.php
new file mode 100644
index 000000000..16e7f113f
--- /dev/null
+++ b/Zotlabs/Daemon/Zotconvo.php
@@ -0,0 +1,32 @@
+<?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;
+ }
+
+ $mid = $argv[2];
+ if (!$mid) {
+ return;
+ }
+
+ $channel = channelx_by_n(intval($argv[1]));
+ if (!$channel) {
+ return;
+ }
+
+ Libzot::fetch_conversation($channel, $mid);
+
+ return;
+
+ }
+}