mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 00:15:23 +00:00
24 lines
358 B
PHP
24 lines
358 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Daemon;
|
|
|
|
class Deliver_hooks
|
|
{
|
|
|
|
public static 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]);
|
|
}
|
|
}
|
|
}
|