aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-18 20:38:09 -0700
committerzotlabs <mike@macgirvin.com>2017-09-18 20:38:09 -0700
commit4fbebe7b2d6c38747986d18ea07db5b42c2a072a (patch)
tree41386fcd445f54658051b83d87edc1c59739c40b /Zotlabs/Daemon
parente812836a601f5fda32b520e9af29f89ae2227524 (diff)
downloadvolse-hubzilla-4fbebe7b2d6c38747986d18ea07db5b42c2a072a.tar.gz
volse-hubzilla-4fbebe7b2d6c38747986d18ea07db5b42c2a072a.tar.bz2
volse-hubzilla-4fbebe7b2d6c38747986d18ea07db5b42c2a072a.zip
create new hooks for permissions_accept and permissions_reject
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r--Zotlabs/Daemon/Notifier.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 0e8c99572..1b8a7d412 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -59,6 +59,8 @@ require_once('include/bbcode.php');
*
* ZOT
* permission_create abook_id
+ * permission_accept abook_id
+ * permission_reject abook_id
* permission_update abook_id
* refresh_all channel_id
* purge_all channel_id
@@ -171,8 +173,12 @@ class Notifier {
if($channel) {
$perm_update = array('sender' => $channel, 'recipient' => $r[0], 'success' => false, 'deliveries' => '');
- if($cmd == 'permission_create')
+ if($cmd === 'permission_create')
call_hooks('permissions_create',$perm_update);
+ elseif($cmd === 'permission_accept')
+ call_hooks('permissions_accept',$perm_update);
+ elseif($cmd === 'permission_reject')
+ call_hooks('permissions_reject',$perm_update);
else
call_hooks('permissions_update',$perm_update);