aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver_hooks.php
diff options
context:
space:
mode:
authorHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-25 17:52:58 +0200
committerHaakon Meland Eriksen <haakon.eriksen@far.no>2015-09-25 17:52:58 +0200
commitb22fa9f7f4b77569c29b0fc881373393281b7bf4 (patch)
tree510549743c5dede2ab5360a516768264fb29336b /include/deliver_hooks.php
parent414b5ea6f3ad616c5211b0e9d4b811c149decf26 (diff)
parentba94f824b992f9ed787a71c2956388e975058ca8 (diff)
downloadvolse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.tar.gz
volse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.tar.bz2
volse-hubzilla-b22fa9f7f4b77569c29b0fc881373393281b7bf4.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/deliver_hooks.php')
-rw-r--r--include/deliver_hooks.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/deliver_hooks.php b/include/deliver_hooks.php
new file mode 100644
index 000000000..f0d6ba1b1
--- /dev/null
+++ b/include/deliver_hooks.php
@@ -0,0 +1,29 @@
+<?php
+
+
+require_once('include/cli_startup.php');
+require_once('include/zot.php');
+
+
+function deliver_hooks_run($argv, $argc) {
+
+ cli_startup();
+
+ $a = get_app();
+
+ if($argc < 2)
+ return;
+
+
+ $r = q("select * from item where id = '%d'",
+ intval($argv[1])
+ );
+ if($r)
+ call_hooks('notifier_normal',$r[0]);
+
+}
+
+if (array_search(__file__,get_included_files())===0){
+ deliver_hooks_run($argv,$argc);
+ killme();
+}