call the follow_accept hook when desired

This commit is contained in:
zotlabs
2017-09-19 13:25:34 -07:00
parent 4500faf463
commit bced63e823
2 changed files with 5 additions and 1 deletions

View File

@@ -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)