streams/Zotlabs/Daemon/Deliver_hooks.php

25 lines
358 B
PHP
Raw Normal View History

2016-05-20 02:42:45 +00:00
<?php
namespace Zotlabs\Daemon;
2021-12-03 03:01:39 +00:00
class Deliver_hooks
{
2016-05-20 02:42:45 +00:00
2021-12-03 03:01:39 +00:00
public static function run($argc, $argv)
{
2016-05-20 02:42:45 +00:00
2021-12-03 03:01:39 +00:00
if ($argc < 2) {
return;
}
2016-05-20 02:42:45 +00:00
2021-12-03 03:01:39 +00:00
$r = q(
"select * from item where id = '%d'",
intval($argv[1])
);
if ($r) {
call_hooks('notifier_normal', $r[0]);
}
}
2016-05-20 02:42:45 +00:00
}