aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Zotconvo.php
blob: 3d61624733f2026689f25fc78af42d1810e5d328 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;

	}
}