aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Notifier.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-19 13:25:34 -0700
committerzotlabs <mike@macgirvin.com>2017-09-19 13:25:34 -0700
commitbced63e8237329ddaa6a5271589cbba50bd31448 (patch)
treed34ce952b15993a6f3f9067f6f3a0831e681023d /Zotlabs/Daemon/Notifier.php
parent4500faf463e7fd6fcf9948666421c941a1292df9 (diff)
downloadvolse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.tar.gz
volse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.tar.bz2
volse-hubzilla-bced63e8237329ddaa6a5271589cbba50bd31448.zip
call the follow_accept hook when desired
Diffstat (limited to 'Zotlabs/Daemon/Notifier.php')
-rw-r--r--Zotlabs/Daemon/Notifier.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Notifier.php b/Zotlabs/Daemon/Notifier.php
index 54d609ad1..5f8490b06 100644
--- a/Zotlabs/Daemon/Notifier.php
+++ b/Zotlabs/Daemon/Notifier.php
@@ -161,7 +161,7 @@ class Notifier {
$packet_type = 'keychange';
$normal_mode = false;
}
- elseif($cmd == 'permission_update' || $cmd == 'permission_reject' || $cmd == 'permission_accept' || $cmd == 'permission_create') {
+ elseif(in_array($cmd, [ 'permission_update', 'permission_reject', 'permission_accept', 'permission_create' ])) {
// Get the (single) recipient
$r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_self = 0",
intval($item_id)