aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Daemon/Zotconvo.php
blob: 16e7f113fdbc77c0d7e5d0b7f1fc2f21a5cbb182 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                    
                                


                               
 
                                                           









                                                           
<?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;

	}
}