aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Deliver_hooks.php
blob: e8b5acef08f26de9294358821b90548b674697f8 (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
<?php

namespace Zotlabs\Daemon;

require_once('include/zot.php');

class Deliver_hooks {

	static public function run($argc,$argv) {

		if($argc < 2)
			return;


		$r = q("select * from item where id = '%d'",
			intval($argv[1])
		);
		if($r)
			call_hooks('notifier_normal',$r[0]);

	}
}